@siimple/preset-mustard

A very clean and yellowish theme preset for the siimple CSS toolkit.

Installation

Add this preset to your project using npm or yarn:

$ npm install --save @siimple/preset-mustard

Usage

Include this preset in your siimple.config.js file:

import mustard from "@siimple/preset-mustard";

export default {
    ...mustard,
    // ...other configuration

    // If you need to define your own variants, first extend the preset variants.
    // For example:
    buttons: {
        ...mustard.buttons,
        // ...your custom buttons variants
    },

    // In case that you need to add your custom styles, first extend the styles
    // defined in mustard.styles:
    styles: {
        ...mustard.styles,
        // ...your custom styles
    },
};

This preset uses Inter as the default font family for both body and headings, so you will need to import this font in your HTML file:

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap">

Additional variants

This preset introduces additional variants for some elements like buttons, alerts and badges. For example, you can use the light variant to create a more lithen alert, badge or button:

<!-- Light button -->
<button class="button is-light">Light button</button>

<!-- Light alert -->
<div class="alert is-light">
    Light alert content
</div>

<!-- Light badge -->
<span class="badge is-light">Light badge</span>

You can also create outlined buttons or badges:

<button class="button is-outlined">Outlined button</button>

Demo

Colors

base colors

primary
secondary
highlight
muted
gray
text
heading
background

Typography

Font family

body
'Inter', sans-serif
heading
inherit
code
SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace

Font sizes

0.875rem16px1.25rem1.5rem1.75rem2rem2.5rem3rem3.5rem4rem4.5rem

Buttons

primary
secondary
light
outlined

Alerts

primary alert
secondary alert
light alert

Badges

primarysecondarylightoutlined

Table

RankNameTeamTotal Points
1Sandra HoylesThe Champs80.005
2Mathew SimsJava Lovers68.750
3Helen BoothCode Plus Plus49.120

Cards

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Action
Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Action

Forms


Modals

Open modal

Navigation


Dropdown


Designed and maintained with by @jmjuanes.

Code is licensed under MIT, documentation under Creative Commons Attribution 4.0.

Currently v4.3.1