data/colors/docs/overview/installation.mdx
<Description>How to install Radix Colors.</Description>
Install Radix Colors from your terminal via npm, yarn or pnpm. Current version is 3.0.0
# with npm
npm install @radix-ui/colors
# with yarn
yarn add @radix-ui/colors
# with pnpm
pnpm add @radix-ui/colors
To get started quickly, you can use the CDN files.
<Note> Note: Importing from the CDN in production is not recommended. It's intended for prototyping only. </Note><!-- Load whichever light and dark scales you need -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/gray.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/blue.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/green.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/red.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/gray-dark.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/blue-dark.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/green-dark.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/colors@latest/red-dark.css"
/>
The example above uses the @latest tag to point to the latest version of the scales. You can pin your scales to a specific version.
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/[email protected]/blue.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@radix-ui/[email protected]/blue-dark.css"
/>