2.11.2 • Published 2 days ago

@kiva/kv-tokens v2.11.2

Weekly downloads
-
License
-
Repository
-
Last release
2 days ago

kv-tokens

The package contains

  • A JSON file specifying the design definitions of Kiva's style guide.
  • A custom Tailwind configuration set to Kiva's style guide that can be used as a preset for your Tailwind project.

Install

npm i --save-dev @kiva/kv-tokens

Using the Design Definitions

const designTokens = require("@kiva/kv-tokens/primitives.json");

const primaryTextColor = designTokens.colors.theme.DEFAULT.text.primary;

Using the Tailwind Preset

// tailwind.config.js
module.exports = {
	presets: [require("@kiva/kv-tokens/configs/tailwind.config")],
	// Project-specific customizations
	theme: {
		//...
	},
	content: [
		//...
	],
	// ...
};

See the Tailwind documentation for more information on using a preset.

Notable Config Differences

Our Tailwind config has some differences to the standard install. Notably

  • All Tailwind classes are prefixed with "tw-". E.g., tw-mb-1 instead of mb-1.
  • Themable color names instead of the default Tailwind colors. E.g., tw-bg-primary instead of tw-bg-gray-500. See our Storybook for possible names.
  • Our spacing scale is based on 8px rather Tailwind's default 4px.

Contribution Guidelines

The Kiva UI project is bound by a Code of Conduct.

Kiva welcomes outside contributions to our UI repository. If you have any ideas for a feature or improvement, create an issue and we can discuss whether it makes sense to create a pull request. Thanks for the help!

2.11.2

2 days ago

2.11.1

27 days ago

2.11.0

29 days ago

2.10.0

9 months ago

2.9.0

9 months ago

2.8.0

12 months ago

2.7.0

1 year ago

2.5.0

1 year ago

2.6.0

1 year ago

2.4.1

1 year ago

2.3.0

2 years ago

2.4.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.0

3 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.0

3 years ago

0.14.0

3 years ago

0.14.1

3 years ago

0.13.0

3 years ago

0.12.0

3 years ago

0.11.3

3 years ago

0.11.2

3 years ago

0.11.0

3 years ago

0.10.1

3 years ago

0.11.1

3 years ago

0.10.0

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.5.0

3 years ago

0.6.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.2.2

3 years ago

0.1.0

3 years ago