npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

energy-foundations

v2.1.0

Published

This is css style library based on the foundations of Repsol's newest design system: Energy. It includes every basic element needed to style basic web products, such as colour tokens, sizes, spacing, etc.

Readme

Introduction

This is css style library based on the foundations of Repsol's newest design system: Energy. It includes every basic element needed to style basic web products, such as colour tokens, sizes, spacing, etc.

It can be used on static websites, SPAs or even AEM products. It is the basic pillar supports energy-components.

Getting Started

This library requires Vue.js v3.2 or higher.

Recomendación: Se recomienda instalar las últimas versiones de SASS y Vite para que todo funcione correctamente sin warnings.

Yarn

yarn add energy-foundations

NPM

npm i energy-foundations

Import and use

CSS (recomendado) Importa el CSS compilado una sola vez al inicio de tu aplicación. Cuando uses otras librerías Energy, esta línea debe ir por encima de los estilos de componentes.

// main.ts
import 'energy-foundations/dist/style.css';

Sass (@use opcional) Entradas Sass disponibles para distintos casos:

  • rds-reset.scss
  • rds-variables.scss
  • rds-foundations.scss
  • global.scss (contiene los anteriores)
  • style.scss (nuevo): entrada Sass "todo-en-uno" para emitir el CSS base de Foundations desde tu pipeline Sass.

Ejemplo de uso Sass global:

// src/styles/index.scss
@use 'energy-foundations/dist/style.scss';

Evita duplicar CSS: si usas @use '.../style.scss', no importes también energy-foundations/dist/style.css en main.ts.

Tokens y mixins:

@use 'energy-foundations/dist/rds-variables' as *;
@use 'energy-foundations/dist/mixins/typography' as typography;

Nota: style.scss no incorpora variables.css (custom properties). Si necesitas CSS variables precompiladas, usa la importación recomendada de CSS en main.ts.

Use To optimize load times in an SPA, we recommend separating files that contain classes from those that contain mixins and variables:

Clases (CSS base) Mantén el CSS base importado una sola vez (vía main.ts recomendado, o @use '.../style.scss' opcional) y carga tus hojas globales como prefieras.

Mixins y variables Recomendamos crear una hoja basic.scss en tu proyecto donde declares:

@forward 'energy-foundations/dist/rds-variables';
// .btn { color: $rds-color-primary; }

E inyectarla globalmente en Vite:

// vite.config.ts
css: {
  preprocessorOptions: {
    scss: {
      additionalData: "@use './src/styles/basic.scss' as *;"
    }
  }
}

One may also add the following code to the same vite.config.ts file to use styles from node_modules in their project:

server: {
  fs: {
    allow: [".."]
  }
}