8.127.0 • Published 4 days ago

@s-ui/theme v8.127.0

Weekly downloads
1,420
License
MIT
Repository
-
Last release
4 days ago

SUI Components Theme

This repository contains:

  • Generic variables to initialize default values and component styles.
  • A set of placeholders ready to style your component (buttons, tabs, forms, grid system...).
  • Functions and mixins helpers.

Usage

Install sui-theme in your project:

npm install @s-ui/theme --save

Import sui-theme into your sui-component including the path in index.scss:

@import '~@s-ui/theme/lib/index';

If you want to customize your components, create your own theme and add it to your component just before the sui-theme import.

@import '../custom-settings';
@import '~@s-ui/theme/lib/index';

Upgrade from theme-basic@7

Compatibility variables are still available to import manually.

Import only what you need, in inheritance order

For instance:

@import '../custom-settings';
@import '~@s-ui/theme/lib/settings-compat-v7/color';
@import '~@s-ui/theme/lib/settings-compat-v7/spacing';
@import '~@s-ui/theme/lib/index';

Find below the compat varible groups available:

Also, if you need it all for older components, you can do

@import '~@s-ui/theme/lib/settings-compat-v7/index';
@import '~@s-ui/theme/lib/index';

Media queries and breakpoints

Rules & Definitions

  • Breakpoints must be exactly xxs, xs, s, m, l, xl, xxl
  • For new implementations, the only allowed media query is media-breakpoint-up
  • media-breakpoint-down, media-breakpoint-only and media-breakpoint-between are deprecated and only kept for legacy reasons.

Reason

  • We want to create all our components mobile first

Legacy components

  • Keep in mind that refactoring legacy components in order to make it rules compliant would suppose a breaking change, so a new major must be released.

Links

8.127.0

4 days ago

8.126.0

1 year ago

8.125.0

1 year ago

8.124.0

2 years ago

8.123.0

2 years ago

8.120.0

2 years ago

8.122.0

2 years ago

8.117.0

2 years ago

8.119.0

2 years ago

8.121.0

2 years ago

8.118.0

2 years ago

8.112.0

2 years ago

8.113.0

2 years ago

8.111.0

3 years ago

8.116.0

2 years ago

8.114.0

2 years ago

8.115.0

2 years ago

8.110.0

3 years ago

8.109.0

3 years ago

8.107.0

3 years ago

8.108.0

3 years ago

8.106.0

3 years ago

8.105.0

3 years ago

8.104.0

3 years ago

8.103.0

3 years ago

8.102.0

3 years ago

8.101.0

3 years ago

8.100.0

3 years ago

8.99.0

3 years ago

8.98.0

3 years ago

8.97.0

3 years ago

8.96.0

3 years ago

8.95.0

3 years ago

8.94.0

3 years ago

8.92.0

3 years ago

8.93.0

3 years ago

8.91.0

3 years ago

8.89.0

3 years ago

8.88.0

3 years ago

8.87.0

4 years ago

8.86.0

4 years ago

8.84.0

4 years ago

8.85.0

4 years ago

8.83.0

4 years ago

8.82.0

4 years ago

8.80.0

4 years ago

8.81.0

4 years ago

8.79.0

4 years ago

8.77.0

4 years ago

8.76.0

4 years ago

8.75.0

4 years ago

8.73.0

4 years ago

8.74.0

4 years ago

8.72.0

4 years ago

8.71.0

4 years ago

8.70.0

4 years ago