Skip to content

Commit f593535

Browse files
committed
Add font family examples and remove WIP banner
1 parent ca8b38b commit f593535

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

docs/source/_layouts/master.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
1919
@stack('headScripts')
2020
</head>
21-
<body data-sidebar-visible="true" class="font-sans font-normal text-black leading-normal">
21+
<body data-sidebar-visible="true" class="font-aktiv font-normal text-black leading-normal">
2222

2323
@yield('body')
2424

docs/source/docs/fonts.blade.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ features:
99
focus: false
1010
---
1111

12-
@include('_partials.work-in-progress')
13-
1412
@include('_partials.class-table', [
1513
'rows' => [
1614
[
@@ -31,9 +29,39 @@ features:
3129
]
3230
])
3331

32+
### Sans-serif
33+
34+
Use `.font-sans` to apply a web safe sans-serif font family:
35+
36+
@component('_partials.code-sample')
37+
<p class="font-sans text-lg text-grey-darkest text-center">
38+
I'm a sans-serif paragraph.
39+
</p>
40+
@endcomponent
41+
42+
### Serif
43+
44+
Use `.font-serif` to apply a web safe serif font family:
45+
46+
@component('_partials.code-sample')
47+
<p class="font-serif text-lg text-grey-darkest text-center">
48+
I'm a serif paragraph.
49+
</p>
50+
@endcomponent
51+
52+
### Monospaced
53+
54+
Use `.font-mono` to apply a web safe monospaced font family:
55+
56+
@component('_partials.code-sample')
57+
<p class="font-mono text-lg text-grey-darkest text-center">
58+
I'm a monospaced paragraph.
59+
</p>
60+
@endcomponent
61+
3462
## Customizing
3563

36-
By default Tailwind provides three font family utilities: a cross-browser sans-serif stack, a cross-browser serif stack, and a cross-browser monospace stack. You can change, add, or remove these by editing the `fonts` section of your Tailwind config.
64+
By default Tailwind provides three font family utilities: a cross-browser sans-serif stack, a cross-browser serif stack, and a cross-browser monospaced stack. You can change, add, or remove these by editing the `fonts` section of your Tailwind config.
3765

3866
@component('_partials.customized-config', ['key' => 'fonts'])
3967
- 'sans': ['system-ui', 'BlinkMacSystemFont', ...],

docs/tailwind.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ config.colors = Object.assign(config.colors, {
66
'tailwind-teal-dark': '#2f8696',
77
})
88

9-
config.fonts = {
10-
'sans': 'aktiv-grotesk, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue',
11-
'serif': 'Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',
12-
'mono': 'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
13-
}
9+
config.fonts = Object.assign(config.fonts, {
10+
'aktiv': 'aktiv-grotesk, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue',
11+
})
1412

1513
config.textSizes = {
1614
'xs': '.75rem', // 12px

0 commit comments

Comments
 (0)