2.0.3 ā€¢ Published 2 months ago

@caravancoop/ui-kit v2.0.3

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

Caravan UI 2.0.3

npm license

šŸš€ UPDATES:

  • Fully integrated with Tailwind!
  • Dark Theme Now Supported! šŸŒƒ
  • Angular 17 Support Now Available! šŸŽ‰

šŸ“¢ Important Note:

Please note that with the update to Angular 17, there might be some breaking changes or dependency conflicts from the previous versions. It is thus recommended to update your projects to Angular 17.

Installation

npm install @caravancoop/ui-kit

šŸ‘‰ Full documentation Getting started

Install peer dependencies

Caravan UI uses Tailwind CSS, please install Tailwind CSS by following the official setup.

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init

Caravan UI uses the open source Feather icons. Please install angular-feather if any icon is needed in your project. Feel free to browse the FeatherIcons and check its repo for the usage.

npm install angular-feather

Theme configuration

  • After the tailwind.config.js file is generated, add the paths to all of your template files in the content array. Remember to add ./node_modules/@caravancoop/ui-kit/fesm2022/*.mjs as this will help Tailwind to find all the styles used in Caravan UI.
  • If you wish to use the same Caravan palettes, copy all the colors variables below to your config file. You can also define your own theme by providing hex codes from 100 to 900, but you will have to keep the exactly same formats and color attribute names such as car-primary.
  • Caravan UI comes with the dark mode, simply define darkMode as class in the config.
module.exports = {
  content: [
    './node_modules/@caravancoop/ui-kit/fesm2022/*.mjs',
    './src/app/*.html'
  ],
  darkMode: "class",
  theme: {
    fontFamily: {
      sans: ['Roboto', 'sans-serif']
    },
    colors: {
      'car-primary': {
        100: '#CAFDFA',
        300: '#62E9F5',
        500: '#00ACDE',
        700: '#00649F',
        900: '#00336A'
      },
      'car-secondary': {
        100: '#FFF8CC',
        300: '#FFE566',
        500: '#FFC900',
        700: '#B78800',
        900: '#936A00'
      },
      'car-success': {
        100: '#CAFCDB',
        300: '#60F1AE',
        500: '#00D199',
        700: '#00968B',
        900: '#005864'
      },
      'car-error': {
        100: '#FDCED4',
        300: '#F86E99',
        500: '#E8117F',
        700: '#A70879',
        900: '#6F0365'
      },
      'car-neutral': {
        50: '#F4F6F7',
        100: '#DAE1E7',
        300: '#B8C2CC',
        500: '#8795A1',
        700: '#606F7B',
        900: '#3D4852'
      },
      'car-dark': {
        100: '#22303C',
        200: '#192734',
        300: '#15202B'
      },
      'car-light': '#fff'
    },
    extend: {},
  },
  plugins: [],
}
2.0.3

2 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

1.7.3

7 months ago

1.7.2

8 months ago

1.6.3

8 months ago

1.7.1

8 months ago

1.6.2

8 months ago

1.7.0

8 months ago

1.6.1

8 months ago

1.5.2

9 months ago

1.5.1

9 months ago

1.5.0

9 months ago

1.4.1

9 months ago

1.4.0

9 months ago

1.3.1

9 months ago

1.3.0

10 months ago

2.0.2

6 months ago

2.0.1

6 months ago

2.0.0

6 months ago

0.0.10

10 months ago

1.7.6

7 months ago

1.7.5

7 months ago

1.7.4

7 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.4

11 months ago

0.0.1

11 months ago