项目作者: gotitinc

项目描述 :
Aha Design System - CSS - Style tools for component-based UI development
高级语言: SCSS
项目地址: git://github.com/gotitinc/aha-css.git
创建时间: 2020-12-04T11:40:03Z
项目社区:https://github.com/gotitinc/aha-css

开源协议:Apache License 2.0

下载




Aha logo

Aha Design System - CSS


Style tools for component-based UI development.


Explore Aha docs »




Report bug
·
Request feature

Status

CI
@ahaui/css"">
@ahaui/css?label=CSS" alt="npm bundle size">
@ahaui/css"">npm version
GitHub issues

Quick start

Option 1: Via HTML tag

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

Option 2: Via node module

  1. # With npm
  2. npm install @ahaui/css
  3. # Or with yarn
  4. yarn add @ahaui/css
  1. /* In JS file */
  2. import '@ahaui/css/index.min.css';
  1. /* Or in CSS file */
  2. @import "@ahaui/css/index.min.css";

Customization

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

  1. @import "@ahaui/css/index.min.css";
  2. :root {
  3. --colorPrimary: #ff43ab;
  4. }

Full customizable variables:

  1. :root {
  2. --colorPrimaryLighter: #e7ecfc;
  3. --colorPrimaryLight: #d7defa;
  4. --colorPrimary: #375de7;
  5. --colorFocusPrimary: #375de733;
  6. --colorPrimaryDark: #2c4ab8;
  7. --colorPrimaryDarker: #21388b;
  8. --colorAccentLighter: #fff1e8;
  9. --colorAccentLight: #fbdfcc;
  10. --colorAccent: #ed6200;
  11. --colorFocusAccent: #ed620033;
  12. --colorAccentDark: #d55800;
  13. --colorAccentDarker: #a64500;
  14. --colorNegativeLighter: #ffd2d8;
  15. --colorNegativeLight: #f6bcc3;
  16. --colorNegative: #d0021b;
  17. --colorFocusNegative: #d0021b33;
  18. --colorNegativeDark: #b50016;
  19. --colorNegativeDarker: #960012;
  20. --colorWarningLighter: #fdf4d0;
  21. --colorWarningLight: #fff0b3;
  22. --colorWarning100: #ffe380;
  23. --colorWarning: #ffc400;
  24. --colorFocusWarning: #ffc40033;
  25. --colorWarning300: #ffab00;
  26. --colorWarningDark: #ff991f;
  27. --colorPositiveLighter: #d7f9e7;
  28. --colorPositiveLight: #aceccb;
  29. --colorPositive: #22a861;
  30. --colorFocusPositive: #22a86133;
  31. --colorPositiveDark: #019044;
  32. --colorPositiveDarker: #017a3a;
  33. --colorInformationLighter: #e7ecfc;
  34. --colorInformationLight: #d7defa;
  35. --colorInformation: #375de7;
  36. --colorFocusInformation: #375de733;
  37. --colorInformationDark: #2c4ab8;
  38. --colorInformationDarker: #21388b;
  39. --fontFamily: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  40. --fontRegular: 400;
  41. --fontMedium: 500;
  42. --fontBold: 700;
  43. --radiusSmall: 2px;
  44. --radiusMedium: 4px;
  45. --radiusLarge: 8px;
  46. --radiusExtraLarge: 16px;
  47. }

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:

  1. @ahaui/css/
  2. └── dist/
  3. ├── index.css
  4. ├── index.css.map
  5. ├── index.min.css
  6. ├── utilities.css
  7. ├── utilities.css.map
  8. └── utilities.min.css

Browser support

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

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