1.2.2 • Published 2 years ago

@rivium/design-tokens v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@rivium/design-tokens

This is a shareable configuration for tailwindcss. Includes all brand colors, fonts, spacing rules, etc.

If you develop a product of rivium this library is necessary to follow the correct brand guidelines

Get Starter

Install this library with the next command

npm install @rivium/design-tokens

Next, import the library in your tailwind.config.js file and includes this in 'Presets'

// tailwind.config.js
/** @type {import('tailwindcss').Config} */
import RiviumDesignTokens from '@rivium/design-tokens'

export default {
  content: ['./index.html', './src/**/*.{js,ts,vue}'],
  presets: [RiviumDesignTokens],
  theme: {
    extend: {}
  },
  plugins: []
}

Now you can use all values defined in the library. Example:

<p class="text-primary">Hello world</p>

Documentation

Read the full documentation on https://rivium-docs.surge.sh/design-tokens/

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago