2.1.6 • Published 1 year ago

@ahaui/css v2.1.6

Weekly downloads
70
License
Apache-2.0
Repository
github
Last release
1 year ago

Status

CI npm.io npm bundle size npm version GitHub issues

Quick start

Option 1: Via HTML tag

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ahaui/css/dist/index.min.css" />

Option 2: Via node module

# With npm
npm install @ahaui/css

# Or with yarn
yarn add @ahaui/css
/* In JS file */
import '@ahaui/css/index.min.css';
/* Or in CSS file */
@import "@ahaui/css/index.min.css";

Customization

After importing the Aha CSS file, you can override following CSS variables to make your custom theme:

@import "@ahaui/css/index.min.css";

:root {
  --colorPrimary: #ff43ab;
}

Full customizable variables:

:root {
  --colorPrimaryLighter: #e7ecfc;
  --colorPrimaryLight: #d7defa;
  --colorPrimary: #375de7;
  --colorFocusPrimary: #375de733;
  --colorPrimaryDark: #2c4ab8;
  --colorPrimaryDarker: #21388b;
  --colorAccentLighter: #fff1e8;
  --colorAccentLight: #fbdfcc;
  --colorAccent: #ed6200;
  --colorFocusAccent: #ed620033;
  --colorAccentDark: #d55800;
  --colorAccentDarker: #a64500;
  --colorNegativeLighter: #ffd2d8;
  --colorNegativeLight: #f6bcc3;
  --colorNegative: #d0021b;
  --colorFocusNegative: #d0021b33;
  --colorNegativeDark: #b50016;
  --colorNegativeDarker: #960012;
  --colorWarningLighter: #fdf4d0;
  --colorWarningLight: #fff0b3;
  --colorWarning100: #ffe380;
  --colorWarning: #ffc400;
  --colorFocusWarning: #ffc40033;
  --colorWarning300: #ffab00;
  --colorWarningDark: #ff991f;
  --colorPositiveLighter: #d7f9e7;
  --colorPositiveLight: #aceccb;
  --colorPositive: #22a861;
  --colorFocusPositive: #22a86133;
  --colorPositiveDark: #019044;
  --colorPositiveDarker: #017a3a;
  --colorInformationLighter: #e7ecfc;
  --colorInformationLight: #d7defa;
  --colorInformation: #375de7;
  --colorFocusInformation: #375de733;
  --colorInformationDark: #2c4ab8;
  --colorInformationDarker: #21388b;
  --fontFamily: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fontRegular: 400;
  --fontMedium: 500;
  --fontBold: 700;
  --radiusSmall: 2px;
  --radiusMedium: 4px;
  --radiusLarge: 8px;
  --radiusExtraLarge: 16px;
}

NOTE: Overriding utility CSS classes is possible, but not recommended.

What's included

Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:

@ahaui/css/
└── dist/
    ├── index.css
    ├── index.css.map
    ├── index.min.css
    ├── utilities.css
    ├── utilities.css.map
    └── utilities.min.css

Browser support

  • Google Chrome (latest)
  • Microsoft Edge (latest)
  • Opera (latest)
  • Firefox 4+
  • Safari 7+

Copyright and license

Code and documentation copyright 2020 the Got It, Inc. Code released under the Apache-2.0 License.

2.1.6

1 year ago

2.1.2

1 year ago

2.1.1

2 years ago

2.1.4

1 year ago

2.1.5

1 year ago

2.1.0

2 years ago

2.0.5

2 years ago

2.0.5-alpha.2

2 years ago

2.0.5-alpha.3

2 years ago

2.0.5-alpha.1

2 years ago

2.0.4

2 years ago

2.0.4-alpha.7

3 years ago

2.0.4-alpha.6

3 years ago

2.0.4-alpha.3

3 years ago

2.0.4-alpha.4

3 years ago

2.0.4-alpha.2

3 years ago

2.0.4-alpha.1

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

2.0.0-alpha.1

3 years ago