39.0.1 • Published 6 months ago

@danske/sapphire-css v39.0.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
6 months ago

@danske/sapphire-css

This is the implementation of Sapphire design system as css style rules.

List of Styles

To view the list of available classes you can npm run storybook from this folder.

Use a style/class

npm i @danske/sapphire-css

After this you can import css and start using it.

import '@danske/sapphire-css/button/button.module.css';

const MyApp = () => {
  return (
    <button class="sapphire-button sapphire-button--primary">
      Primary button
    </button>
  );
};

You will find more example in storybook documentation

Themes

Each theme is available in .css and .js format. Both of them import the corresponding css files for that theme. The default export of the .js format is the theme's css class. It also exports tokens object.

Themes can be imported from @danske/sapphire-css/themes/ path:

In css:

@import '~@danske/sapphire-css/themes/default.css';

In js/ts:

import defaultThemeClass, { tokens } from '@danske/sapphire-css/themes/default';
36.0.0

10 months ago

35.4.0

11 months ago

35.0.0

1 year ago

38.0.0

9 months ago

33.1.0

1 year ago

37.0.0

9 months ago

35.3.0

11 months ago

35.5.0

10 months ago

39.0.1

6 months ago

39.0.0

7 months ago

34.0.0

1 year ago

38.1.0

8 months ago

38.1.1

8 months ago

33.2.0

1 year ago

33.0.0

1 year ago

33.0.2

1 year ago

33.0.1

1 year ago

32.2.1

1 year ago

32.1.2

1 year ago

32.1.0

1 year ago

32.2.0

1 year ago

32.1.1

1 year ago

32.0.0

1 year ago

32.0.1

1 year ago

31.2.1

1 year ago

31.2.2

1 year ago

31.1.2

1 year ago

28.0.0

1 year ago

28.1.0

1 year ago

28.0.1

1 year ago

28.4.0

1 year ago

28.2.0

1 year ago

28.1.1

1 year ago

28.0.2

1 year ago

28.3.0

1 year ago

26.6.1

1 year ago

26.6.0

2 years ago

31.0.0

1 year ago

31.1.0

1 year ago

26.4.0

2 years ago

26.3.1

2 years ago

26.1.3

2 years ago

31.1.1

1 year ago

26.3.0

2 years ago

26.2.0

2 years ago

27.0.0

1 year ago

30.0.3

1 year ago

27.1.0

1 year ago

27.1.1

1 year ago

27.0.1

1 year ago

30.0.2

1 year ago

30.0.0

1 year ago

25.1.0

2 years ago

26.1.0

2 years ago

16.3.0

2 years ago