We start with pico.css then we add a theme which we style using open-props css variables.
The theme comes from the pico.css documentation and we can use that as examples of our styling.
- most of the pico docs contain the following
<link rel="stylesheet" href="../css/pico.min.css" />
<link rel="stylesheet" href="css/pico.docs.min.css" />
- so lets rename
pico.docs.min.css
topico.docs.min.ex.css
- inside of
pico.docs.min.css
we put:
@import './pico.css';
@import './nw-main.css';
@import './nw-utils.css';
-
nw-main.css
is our stuff and we have this at the top
@import 'https://unpkg.com/open-props';
- and then the contents of
css/themes/default.css
- now we can preview a docs page and set some
pico-var
to anopen-props
var innw-main.css
ornw-utils.css
- and our live-server preview will update
- [] then we go through each of the pico.css docs pages and change stuff in
main.css
until we have something that we like - [] we should also add our grid layout page so that we can test that as well
- [] basically we are revising the default pico.css theme to become our nw-theme