3.0.1 • Published 11 months ago

@sargamdesign/colors v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

npm.io

Sargam Colors

Colors for designing warm welcoming, caring sites & apps.

Installation

Install from your terminal via npm.

npm i @sargamdesign/colors -D

Usage

// Place this at the top of your SCSS/CSS file
@import "@sargamdesign/colors";
<!-- Add this attribute to the HTML wrapper -->
<html color-scheme="light">

Available Themes

  • light
  • dark

Usage Example

.button { background-color: var(--button-primary); color: var(--text-on-color); }
.button:hover { background-color: var(--button-primary-hover); }
.button:active { background-color: var(--button-primary-active); }

Color Tokens

Text

VariableValue(Light)Value(Dark)Role
--text-primary--silver8--silver1Body copy
--text-primary-alt--silver7--silver3Body copy alt
--text-secondary--silver6--silver5Secondary text color
--text-placeholder--silver5--silver6Placeholder text
--text-on-color--silver1--silver1Text on interactive colors
--text-error--red6--red4Error message text
--text-success--green6--green4Success message text

Support

VariableValue(Light)Value(Dark)Role
--support-error--red5--red4Error
--support-warning--yellow5--yellow4Warning
--support-success--green5--green4Success
--support-info--teal5--teal4Information

Link

VariableValue(Light)Value(Dark)Role
--link--teal6--teal4Primary links
--link-hover--teal7--teal6Hover state for primary links
--link-subtle--teal5--teal5Secondary links
--link-visited--lavender6--lavender4Link visited
--link-muted--silver8--silver1Link muted

Icon

VariableValue(Light)Value(Dark)Role
--icon-primary--silver7--silver3Primary icons
--icon-secondary--silver6--silver5Secondary icons
--icon-disabled--silver5--silver6Disabled state for icons
--icon-on-color--silver1--silver8Icons on interactive colors

Button

VariableValue(Light)Value(Dark)Role
--button-primary--teal5--teal4Primary button background
--button-primary-hover--teal6--teal3Primary button hover
--button-primary-active--teal7--teal2Primary button active
--button-secondary--silver8--silver6Secondary button background
--button-secondary-hover--silver7--silver7Secondary button hover
--button-secondary-active--silver6--silver8Secondary button active
--button-danger--red5--red4Danger button background
--button-danger-hover--red6--red3Danger button hover
--button-danger-active--red7--red2Danger button active
--button-disabled--silver5--silver6Disabled button
--button-disabled-alt--silver4--silver7Disabled button alt

Border

VariableValue(Light)Value(Dark)Role
--border-muted--silver3--silver7Muted borders and separators
--border-default--silver5--silver6Default borders and separators
--border-strong--silver6--silver5Strong borders and separators

Background

VariableValue(Light)Value(Dark)Role
--background--silver1--silver8Default app background
--background-subtle--silver2--silver7Subtle background
--background-selected--silver3--silver6Hovered UI element background
--background-red--red1--red8Subtle red background
--background-yellow--yellow1--yellow8Subtle yellow background
--background-green--green1--green8Subtle green background
--background-teal--teal1--teal8Subtle teal background
--background-lavender--lavender1--lavender8Subtle lavender background
--background-pink--pink1--pink8Subtle pink background

License

MIT License, Copyright (c) 2024 Method Black. Brought to you by @planetabhi 🙌

3.0.1

11 months ago

3.0.0

11 months ago

2.1.3

11 months ago

2.1.2

1 year ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago