• Stars
    star
    3,751
  • Rank 11,755 (Top 0.3 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŒธ a minimal css framework/theme.

sakura: a minimal, classless CSS framework / theme.

npm

[Go to GitHub repository]

The cherry blossoms

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.

Demo

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):

Bookmark

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:

Why? - Reasons to use sakura

How exactly does sakura help you? I had a discussion about this on the reddit thread.

  • Just drop it in, even on existing HTML content, to get a pretty-looking website (everything "just works")
  • Quick prototyping, especially when working on backend sites and can't yet be bothered to fidget with CSS/HTML
  • Building a quick (but pretty) site/blog for your best friend or aunt!
  • No need to remember tons of different class names for every other CSS framework
  • Works amazingly with markdown-generated HTML pages (eliminates the need for hacks like including .img img-responsive in <img></img> tags generated from markdown-parser
  • Wonderful for people who aren't really good or interested in design as sakura is nothing but a set of reasonable defaults

Installation

Manually (recommended):

  1. Download the file:

    wget "https://raw.githubusercontent.com/oxalorg/sakura/master/css/sakura.css"

    OR download directly: sakura.css

  2. Link it from HTML:

    <link rel="stylesheet" href="sakura.css" type="text/css">

CDN:

  1. Simply add this in your <head> tag:

    <link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css">

Package Manager:

  1. Install from npm:

    npm install sakura.css
  2. Install from Yarn:

    yarn add sakura.css

(Optional) but recommended to use normalize.css to reset before using sakura.

Sites 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!! ^_^

Theming

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";

Dark mode

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)" />

Contributing

Please have a look at the instructions.

Contributors

Share some <3

Between our two lives there is also the life of the cherry blossom.

  • Basho Matsuo

Please leave a star. :)

More Repositories

1

4ever-clojure

Pure cljs version of 4clojure, meant to run forever!
Clojure
230
star
2

stagit

Static git web viewer. [GitHub Mirror]
C
104
star
3

clj-konmari

The Lifeโ€‘Changing Magic of Tidying Up Clojure Codebases
Clojure
37
star
4

smurf

simple markdown surfer
Python
37
star
5

4clojure-solutions-archive

Anonymised solutions archive of 4clojure.com
Clojure
19
star
6

clojurians-log-v2

Capturing, conserving, and making this discourse of Clojurians slack community complete, easily accessible, and searchable.
Clojure
18
star
7

dotfiles

easiest way to feel right at $HOME
Emacs Lisp
17
star
8

wordle-clojurescript

Wordle clone in clojurescript
Clojure
14
star
9

ninshu

ninshu - The Ninja Programming Language (inspired from naruto)
Python
13
star
10

neat.py

My small implementation of NEAT (NeuroEvolution of Augmenting Topologies)
Python
9
star
11

clojure-todo

Clojure, ClojureScript, Reagent end-to-end example
Clojure
8
star
12

dystic

a minimal static site generator using dynamic principles
Python
7
star
13

ghPublish

Directly publish your blog posts to GitHub Pages from the command line.
Python
7
star
14

genox

a simple static site generator
Python
6
star
15

computableverse.com

Code for my tech blog
CSS
4
star
16

vim-genox

Vim Plugin for static site generator `genox`
Vim Script
3
star
17

.emacs.d

My .emacs.d with Corgi!
Emacs Lisp
3
star
18

mitesh.ninja

mi casa su casa.
Python
3
star
19

Stab

Start Blogging with this minimal static site generator.
Python
3
star
20

VisaApplication

Andorid application with a python JSON API to process visa application of employees.
CSS
3
star
21

Vader.css

Join the DARK side.
CSS
2
star
22

miteshshah.com

HTML
2
star
23

supertokens-go

2
star
24

clojure.quest

Learn clojure and clojurescript with easy tutorials
Clojure
2
star
25

sakura-jekyll

HTML
2
star
26

emacs-clockify

clockify.el emacs package for tracking time in clockify
Emacs Lisp
2
star
27

gingerstationery.com

CSS
2
star
28

clojuredocs.el

Emacs browser for clojuredocs.org
Emacs Lisp
2
star
29

audiomark

Python
2
star
30

wallPy

Automate wallpaper changing for Unity/Gnome. Fetches images from any specified multireddit.
Python
2
star
31

oxal.org-OLD

Rewrote the website
HTML
1
star
32

oxalorg

1
star
33

talk-clojure-project-setup

Clojure
1
star
34

video-notes

Notes linked to my videos
1
star
35

oxama

Learning Django with a fun AMA app
Python
1
star
36

clj-vimeo

Clojure library for the vimeo API
1
star
37

weather-demo

https://weather-demo.vercel.app
SCSS
1
star
38

school

Some of the code I've written based on subjects taught in school/college
C
1
star
39

kaocha-plugin-examples

Clojure
1
star
40

clj-imagemagick

Clojure
1
star
41

OnlineTicketBooking

Prototype of the process 'Booking a Ticket' for Analysis and Design project.
Python
1
star
42

vim-python-magic

Vim + Python + Virtualenvwrapper + FZF == Magic
Vim Script
1
star
43

phpBlogNinja

My first PHP project - A simple blog with user authentication
PHP
1
star
44

pirate-lang-test

Clojure
1
star
45

ClojureMadeEasy.com

Clojure is simple, lets make it easy :)
1
star
46

IUCNRedList-endagered

Python
1
star
47

owlofathena

CSS
1
star
48

BoxWiki

Simple portable personal wiki / notetaking solution.
Python
1
star
49

oblog

HTML
1
star
50

earthlyhumans.com

CSS
1
star