hds-core

4.0.0 • Public • Published

hds-core npm npm bundle size

Base styles and individual HTML component styles for the Helsinki Design System.

📚 See the components in Storybook

Getting started

Install the package.

yarn add hds-core

What's included

hds-core/
├── src/                # source css
└── lib/
    ├── components/     # collection of HDS component styles
    │   ├── all.css               # bundled stylesheet including all components
    |   └── <component name>/     # component stylesheets
    │       ├── <component name>.css
    │       :
    │
    ├── icons/          # collection of HDS icon styles
    │   ├── icons.css               # bundled stylesheet including all icons
    │   ├── icon.css              # base styles for icons
    │   ├── icon-<icon name>.css  # individual icon stylesheet
    │   :
    │
    ├── utils/          # utility stylesheets
    ├── variables/      # collection of css variables and base styles
    └── base.css        # base styles

Using the styles

To import styles for all the core components, you'll need two stylesheets: base.css (the base styles and CSS variables) and components/all.css. If you use any of the icons, you'll also need icons/icons.css. Do note that the components/all.css bundles all the components and icons/icons.css bundles all the icons into single stylesheets and thus are large in filesize.

Therefore, we do recommend that you use individual component and icon stylesheets instead of the bundled styles.

JS

// import base styles and css variables
import "hds-core";

Helsinki fonts

The Helsinki fonts are not included in the package due to copyright reasons.

Overriding styles

Helsinki Design System uses CSS variables from the hds-design-tokens package to control coloring, spacing and layout. You can override these variables if necessary, but it is not recommended.

Development

Read more here.

Built with

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.4.0-alpha.60alpha
4.0.084latest
4.0.0-beta.351beta

Version History

VersionDownloads (Last 7 Days)Published
4.0.084
4.0.0-beta.351
3.0.0-beta.343
4.0.0-beta.25
4.0.0-beta.12
4.0.0-beta.02
3.11.0214
3.10.1280
3.10.0117
3.9.0101
3.8.054
3.7.00
3.6.025
2.17.1634
3.5.00
3.4.00
3.4.0-alpha.60
3.4.0-alpha.50
3.4.0-alpha.40
3.4.0-alpha.30
3.4.0-alpha.20
3.4.0-alpha.10
3.4.0-alpha.00
3.3.05
3.2.00
3.1.00
3.0.01
2.17.0480
3.0.0-alpha.00
2.16.013
2.15.034
2.14.00
2.13.042
2.12.145
2.12.00
2.11.00
2.10.00
2.9.00
2.8.01
2.7.00
2.6.10
2.6.00
2.5.00
2.4.00
2.3.00
2.2.00
2.1.10
2.1.00
2.0.00
1.15.00
1.14.03
1.13.00
1.12.04
1.11.10
1.11.00
1.10.00
1.9.00
1.8.00
1.7.10
1.7.00
1.6.00
1.5.11
1.5.00
1.4.10
1.4.00
1.3.10
1.3.00
1.2.00
1.1.00
1.0.00
0.25.00
0.24.00
0.23.10
0.23.00
0.22.00
0.21.00
0.20.00
0.19.00
0.18.00
0.17.00
0.16.124
0.16.00
0.15.11
0.15.00
0.14.00
0.13.30
0.13.20
0.13.10
0.13.00
0.12.10
0.12.00
0.11.30
0.11.20
0.11.10
0.11.00
0.10.11
0.10.00
0.6.30
0.6.20
0.6.10
0.6.00
0.5.00
0.4.20
0.4.10
0.4.00
0.3.20
0.3.10
0.3.00
0.2.21
0.2.10
0.2.00
0.1.10

Package Sidebar

Install

npm i hds-core

Weekly Downloads

2,268

Version

4.0.0

License

MIT

Unpacked Size

3.11 MB

Total Files

936

Last publish

Collaborators

  • helsinki
  • lehtoinen