:cherry_blossom: a minimal css framework/theme.
[Go to GitHub repository]
The perfect blossom is a rare thing. You could spend your life looking for
one, and it would not be a wasted life.
Just drop sakura.css
into any webpage and go from an ugly-looking 1900s
website to a pretty, modern website in literally 0 seconds.
It’s easy to customize and build on top of sakura.
Sakura supports extremely easy theming using variables for duotone color
scheming. It comes with several existing themes, which can be found in the css
folder of this repository.
Compare a live page WITH and WITHOUT sakura.
Also, my blog is a nice place to check sakura in action with heavy text (it has
a “change theme” button on the top as well):
Don’t want to develop using sakura but instead want to use it on websites with
outdated 90s design (i.e. no CSS)?
If so, enable sakura on any website using the following
instructions:
How exactly does sakura help you? I had a discussion about this on the
reddit thread.
.img img-responsive
in <img></img>
tags generatedCDN (recommended):
Simply add this in your <head>
tag:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sakura.css/css/sakura.css" type="text/css">
Manually:
Download the file:
wget "https://raw.githubusercontent.com/oxalorg/sakura/master/css/sakura.css"
OR download directly:
sakura.css
Link it from HTML:
<link rel="stylesheet" href="sakura.css" type="text/css">
Package Manager:
Install from npm:
npm install sakura.css
Install from Yarn:
yarn add sakura.css
(Optional) but recommended to use
normalize.css
to reset before using sakura.
If you’re using sakura, please let me know or make a pull request adding in
your name. I would be super happy!! ^_^
You can make your own themes by overriding some variables for colors.
Here is an example file: ./scss/sakura-earthly.scss
:
/* Duotone color scheming:
Uses blossom as the revealing/stark color
Uses fade as the more prominent color
*/
$color-blossom: #338618;
$color-fade: #5e5e5e;
/* bg color is used for the background of the page
bg-alt is used for code-blocks etc
*/
$color-bg: #f9f9f9;
$color-bg-alt: #C7E3BE;
/* color of all the text on the page */
$color-text: #4a4a4a;
$font-size-base: 1.8rem;
@import "main";
Add a media attribute as follows to choose a darker theme for dark mode.
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" media="screen" />
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura-dark.css" media="screen and (prefers-color-scheme: dark)" />
Please have a look at the instructions.
Between our two lives there is also the life of the cherry blossom.
- Basho Matsuo
Please leave a star. 😃