You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 2, 2022. It is now read-only.
Reuse these [colors](#colors), [typography](#typography), and [spacing](#spacing) values to create a coherent feel across all IPFS applications.
7
6
8
-
for the official colors, icons and typeography of the IPFS universe.
7
+
## Getting started
9
8
10
-
This repo will be rebooted with the latest UI style guide as part of the IPFS User Interface project
11
-
https://github.com/ipfs-shipyard/pm-ipfs-gui
9
+
These examples use [tachyons] and [ipfs-css]. Using the [Parcel] bundler you can create a index.css file and simply import them.
12
10
13
-
# ~~IPFS UI Style Guide~~
11
+
```css
12
+
@import tachyons;
13
+
@import ipfs-css;
14
+
```
14
15
15
-
A shared style guide for UI design in the IPFS universe.
16
+
If you're using webpack or [create-react-app] you can install them from npm and import them from `node_modules`. Assuming your index.css lives in `/src` you would import them like:
17
+
18
+
```css
19
+
@import"../node_modules/tachyons";
20
+
@import"../node_modules/ipfs-css";
21
+
```
22
+
23
+
`ipfs-css` comes bundled [InterUI] and [Montserrat] woff2 files when installed from npm. If you are using [Parcel] or [create-react-app] then the font files will be copied into your project automatically.
24
+
25
+
Otherwise you will need to copy them from your `node_modules` and ensure the paths in the `@font-face` definitions are correct. It may be simpler to copy the [`@font-face` definitions](https://github.com/ipfs-shipyard/ipfs-css/blob/master/ipfs.css#L8-L104) from [ipfs-css] override them in your `index.css` file to point to where you have copied the fonts to.
Gives us a container with [flexbox](http://tachyons.io/docs/layout/flexbox/) powers, vertically centered children via `items-center` and a dark blue, `bg-navy` background.
Gives us the `aqua` blue text in fancy `montserrat` font. The font-weight is `fw2` (_200 - Extra Light_) and font size `f3` on our [type scale](#typography), which is `24px` olde raster units.
56
+
57
+
It's given a 50% width with `w-50` and the text aligns to the right with `tr`. It's given a semanticaly pleaseing `h1` tag, but we don't want the usual jumbo bottom margin that headers get, so we zero out the margins with `ma0` which reads "margin, all sides, zero".
16
58
17
-
Reuse these [colors](#colors), [typography](#typography), and [spacing](#spacing) values to create a coherent feel across all IPFS applications.
Provide the main content in a font that blends in with the users system, and is already installed.
73
112
74
113
### Font size
75
114
@@ -147,14 +186,25 @@ followed by a _size_ from the scale, so:
147
186
-`mb3`: margin bottom 3 = `margin-bottom: 1rem`
148
187
-`pa2`: margin all 2 = `padding: 0.5rem`
149
188
189
+
Further reading:
190
+
191
+
-http://tachyons.io/docs
192
+
-https://github.com/dwyl/learn-tachyons
193
+
150
194
## Credits
151
195
152
-
This style guide uses ideas from http://tachyons.io/docs/ and http://basscss.com/ and was inspired by https://airbnb.design/building-a-visual-language/
196
+
This style guide is heavily based on http://tachyons.io/
0 commit comments