2.0.2 • Published 6 months ago

@nordcode/ui v2.0.2

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
6 months ago

@nordcode/ui

Hello and welcome to our little design system. This repository holds most of the styles we use as base for our projects.

It's a collection of base styles, components and utilities, that can be imported either as bundle or as granularly as you desire.

Note: We only processed the exported in /compiled. The other files may use cutting edge CSS features, so be sure to process them to your desired target. You can use this browserlist config to target the Baseline Widely Adapted standard:

[
    "Chrome > 0 and last 2.5 years",
    "ChromeAndroid > 0 and last 2.5 years",
    "Edge > 0 and last 2.5 years",
    "Firefox > 0 and last 2.5 years",
    "FirefoxAndroid > 0 and last 2.5 years",
    "Safari > 0 and last 2.5 years",
    "iOS > 0 and last 2.5 years",
    "not dead"
]

Usecase examples

Bundle

bundle.css Imported as "@nordcode/compiled/bundle" / "@nordcode/bundle":

This is the a good starting point for most. It includes base styles and utilities, but no components. You can start right away with this one, as it includes our color palette and config.

Note: There is a bundle-configless.css, that does not include the config. You can grab your from our Design Config generator: https://design-ui.nordcode.agency/

Complete

complete.css Imported as "@nordcode/compiled/complete" / "@nordcode/complete":

This one is the full package. All our styles and included.

First, add all the base styles by importing:

@import "@nordcode/compiled/bundle";

Granular

This one gives you the most control. Every import is a single file, most of them work on their own. Check out the package.json for a full list.

Dependencies

All components heavily rely on @nordcode/ui/colors for their default styles, but can be overriden using CSS custom properties.

  • Many components use classes from @norcode/ui/utils/layouts.css internally.
  • @norcode/ui/buttons.css depends on @nordcode/ui/utils/theme.css.
  • @norcode/ui/badges.css depends on @nordcode/ui/utils/theme.css.
  • @norcode/ui/inputs/*.css all depend on @nordcode/ui/inputs/base.css. Be sure to import that first.

Using Components

For the components, there is recommended markup, previews and usage information here: https://design-ui.nordcode.agency/components/ You can of course adapt them to your needs or copy them directly.

Fonts

We also provide our font packages for ease of use. You can import them like this:

@import "@nordcode/fonts";

Extras

There are some utility svelte and typescript modules exported under @nordcode/modules. They are not strictly part of the design system, but can be useful for your projects.

Note: They may be removed in the future. Use them at your own risk.


Thanks for checking this out, we hope you like it!

Lukas and Joshua

2.0.2

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.0

7 months ago

1.1.7

9 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago