2.2.0 • Published 1 year ago

@dgtal-ui/tokens v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@dgtal-ui/tokens

Design tokens and CSS utilities for the Dgtal UI design system.

Installation

npm install @dgtal-ui/tokens

Usage

Import Styles

// Import in your main.ts or styles.scss
import '@dgtal-ui/tokens/dist/styles.min.css';

Use CSS Classes

<!-- Use utility classes in your HTML -->
<div class="dgtal-flex dgtal-items-center dgtal-justify-between">
  <span class="dgtal-text-lg dgtal-font-bold">Title</span>
  <button class="dgtal-bg-primary dgtal-text-white">Action</button>
</div>

Import JavaScript Tokens

import { colors, spacing, typography } from '@dgtal-ui/tokens';

// Use tokens in your code
const primaryColor = colors.primary;
const spacing4 = spacing[4]; // 1rem

Available Tokens

  • Colors
  • Typography
  • Spacing
  • Layout
  • Flexbox
  • Effects
  • Border
  • And more...

License

MIT © Dgtal Lab

2.2.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago