theme-foundation
Original:🇺🇸 English
Translated
Create a complete theme foundation with accent, secondary, and neutral color ramps from a single brand color. Use when building light/dark mode themes or starting a new design system.
1installs
Sourcebasiclines/rampa-studio
Added on
NPX Install
npx skill4agent add basiclines/rampa-studio theme-foundationTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Theme Foundation
Generate a complete theme color system from a single brand color. Creates primary accent, secondary accent (complementary), and neutral ramps - all mathematically derived.
When to Use
- "Create a theme from my brand color"
- "I need colors for light and dark mode"
- "Generate a color system for my app"
- "Start a new design system with this color"
Installation
bash
npx @basiclines/rampaRecipe
Given a user's brand color, generate three ramp types:
1. Primary Accent Ramp
The main brand color expanded to a full 10-shade scale.
bash
rampa -C "<brand-color>" -L 95:10 --size=10 -O css --name=accent2. Secondary Accent (Complementary)
Mathematically opposite on the color wheel - perfect for CTAs, highlights, or secondary actions.
bash
rampa -C "<brand-color>" --add=complementary -L 95:10 --size=10 -O cssThis outputs two ramps:
- - the primary accent
base - - the secondary accent
complementary-1
3. Neutral Ramp
Derived from the brand color but heavily desaturated. This creates "warm" or "cool" neutrals that feel cohesive with the brand.
bash
rampa -C "<brand-color>" -L 98:5 -S 5:10 --size=10 -O css --name=neutralComplete Example
For brand color (blue):
#3b82f6bash
# Primary accent
rampa -C "#3b82f6" -L 95:10 --size=10 -O css --name=accent
# Secondary + Primary together
rampa -C "#3b82f6" --add=complementary -L 95:10 --size=10 -O css
# Neutrals (slightly warm from the blue)
rampa -C "#3b82f6" -L 98:5 -S 5:10 --size=10 -O css --name=neutralOutput Structure
css
:root {
/* Primary Accent */
--accent-0: #f0f7ff;
--accent-1: #dbeafe;
/* ... */
--accent-9: #1e3a5f;
/* Secondary Accent (complementary) */
--complementary-1-0: #fff7ed;
--complementary-1-1: #ffedd5;
/* ... */
/* Neutrals */
--neutral-0: #fafafa;
--neutral-1: #f5f5f5;
/* ... */
--neutral-9: #171717;
}Light vs Dark Mode
The same ramps work for both modes - just map them differently:
Light Mode:
- Background: to
neutral-0neutral-2 - Text: to
neutral-8neutral-9 - Accent: to
accent-5accent-7
Dark Mode:
- Background: to
neutral-9neutral-7 - Text: to
neutral-0neutral-2 - Accent: to
accent-3accent-5
Tips
- The complementary color is mathematically guaranteed to contrast with the primary
- Neutrals inherit subtle warmth/coolness from the brand color
- Use for more granular control
--size=11 - Adjust range for more/less contrast (e.g.,
-Lfor less extreme)-L 90:20