Awesome
<p align="center"> <img src="https://github.com/rose-pine/rose-pine-theme/raw/main/assets/icon.png" width="80" /> <h2 align="center">Rosé Pine Palette</h2> </p> <p align="center">All natural pine, faux fur and a bit of soho vibes for the classy minimalist</p> <p align="center"> <a href="https://github.com/rose-pine/rose-pine-theme"> <img src="https://img.shields.io/badge/community-rosé%20pine-26233a?labelColor=191724&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUwIiBoZWlnaHQ9IjIzNyIgdmlld0JveD0iMCAwIDI1MCAyMzciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNjEuMjI3IDE2MS4yNTFDMTMyLjE1NCAxNjkuMDQxIDExNC45MDEgMTk4LjkyNCAxMjIuNjkxIDIyNy45OTdDMTIzLjkyNSAyMzIuNjAzIDEyOC42NTkgMjM1LjMzNiAxMzMuMjY0IDIzNC4xMDJMMTg1LjkwNyAyMTkuOTk2QzIxOS41ODUgMjEwLjk3MiAyMzkuNTcgMTc2LjM1NCAyMzAuNTQ2IDE0Mi42NzdMMTYxLjIyNyAxNjEuMjUxWiIgZmlsbD0iIzI0NjI3QiIvPgo8cGF0aCBkPSJNODguMTgzNiAxNTkuOTg4QzExNy4yNTcgMTY3Ljc3OCAxMzQuNTEgMTk3LjY2MiAxMjYuNzIgMjI2LjczNUMxMjUuNDg2IDIzMS4zNCAxMjAuNzUyIDIzNC4wNzMgMTE2LjE0NyAyMzIuODM5TDYzLjUwNDEgMjE4LjczM0MyOS44MjY0IDIwOS43MSA5Ljg0MDk0IDE3NS4wOTIgMTguODY0OSAxNDEuNDE0TDg4LjE4MzYgMTU5Ljk4OFoiIGZpbGw9IiMyNDYyN0IiLz4KPHBhdGggZD0iTTE4Ni44NjcgMTcyLjk4QzE1Mi4wMDIgMTcyLjk4IDEyMy43MzcgMjAxLjI0NSAxMjMuNzM3IDIzNi4xMTFIMTg2Ljg3QzIyMS43MzY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ODlaIiBmaWxsPSIjRUJCQ0JBIi8+CjxwYXRoIGQ9Ik0xMjQuOTI2IDYwLjk3ODlDMTMzLjk1IDI3LjMwMTIgMTY4LjU2NyA3LjMxNTY3IDIwMi4yNDUgMTYuMzM5NkwxODUuOTA1IDc3LjMyMTFDMTc2Ljg4MSAxMTAuOTk5IDE0Mi4yNjMgMTMwLjk4NCAxMDguNTg2IDEyMS45NkwxMjQuOTI2IDYwLjk3ODlaIiBmaWxsPSIjRUJCQ0JBIi8+Cjwvc3ZnPgo=&style=for-the-badge" /> </a> </p>Color palette tool for Rosé Pine
Usage
CSS variables
Media
See
dist/css/rose-pine-media{-rgb,-hsl}.css
Useful for light/dark theming. Values follow the user's system theme, using the dawn variant when light and main variant when dark. Moon values can be uncommented and used instead.
Classes
See
dist/css/rose-pine-class{-rgb,-hsl}.css
Useful for theming with more than two options. Values are set based on a
wrapping class of .theme-rp{-moon,-dawn}
.
body {
color: var(--rp-text);
background: var(--rp-base);
}
Static
See
dist/css/rose-pine{-rgb,-hsl}.css
Useful when flexibility is desired. Values include their variant's name for moon and dawn, allowing all variants to be individually referenced.
.link-main {
color: var(--rp-iris);
}
.link-moon {
color: var(--rp-moon-iris);
}
.link-dawn {
color: var(--rp-dawn-iris);
}
Tailwind CSS
Preset configuration
See
dist/tailwind/rose-pine{-media}.js
// tailwind.config.js
module.exports = {
presets: [require("./rose-pine.js")],
};
If using rose-pine-media.js
, see the section below to include the necessary
CSS variables.
CSS variables
See
dist/css/rose-pine-media-tailwind.css
This method sets CSS variables to raw HSL values to support alpha values in
classes, e.g. bg-rose/50
.
JavaScript
Starting with v4, colour values are unformatted. Formatted values can be found
in our dist
folder. For creating new themes, it is recommended to use our
build tool.
import {variants, roles} from "@rose-pine/palette";
variants.moon.colors.highlightLow.hsl
// => [245, 22, 20]
variants.moon.colors.highlightLow.alpha.hsl
// => [249, 14%, 55%, 0.08]
variants.main.id
// => rose-pine
variants.moon.key
// => moon
variants.dawn.name
// => Rosé Pine Dawn
roles.base.colors.main.hex
// => '191724'
roles.surface.colors.dawn.rgb
// => [255, 250, 243]
roles.highlightLow.id
// => highlight-low
roles.highlightMed.key
// => highlightMed
roles.highlightHigh.name
// => Highlight High
Specification
Variants
Rosé Pine includes three variants. These are referenced as Rosé Pine, Rosé Pine Moon, and Rosé Pine Dawn. Their codenames are main, moon, and dawn respectively. Naming does not include "main" unless necessary. When used as file names, prefer snake-case. E.g. rose-pine, rose-pine-moon, and rose-pine-dawn.
Roles
Neutral
Role | Description | Usage |
---|---|---|
base | Primary background | inactive tabs, sidebars |
surface | Low contrast background atop base | text inputs, panels |
overlay | Medium contrast background atop surface | text inputs, panels, active tabs |
muted | Low contrast foreground | comments, git ignored |
subtle | Medium contrast foreground | non-selected results, inactive tabs, punctuation, operators |
text | High contrast foreground | cursor text, selected results, selection foreground (paired with highlightMed background), active tabs, variables |
highlightLow | Low contrast highlight | cursor line |
highlightMed | Medium contrast highlight | selection background (paired with text foreground) |
highlightHigh | High contrast highlight | cursor background, borders |
Accent
Role | Usage |
---|---|
love | terminal red, builtins, errors, git delete |
gold | terminal yellow, strings, warnings |
rose | terminal cyan, booleans, git change, git dirty, git text |
pine | terminal green, functions, git rename |
foam | terminal blue, object keys, info, git add |
iris | terminal magenta, parameters, links, hints, git merge, git stage |