Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
system-font-css
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonathantneal
system-font-css
Commits
11153524
Commit
11153524
authored
8 years ago
by
Zach Leatherman
Committed by
Jonathan Neal
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Updates to use `system-ui`
parent
f40d7260
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+10
-7
10 additions, 7 deletions
README.md
system-font.css
+8
-8
8 additions, 8 deletions
system-font.css
with
18 additions
and
15 deletions
README.md
+
10
−
7
View file @
11153524
...
@@ -4,19 +4,19 @@ System Font CSS is set of `@font-face` rules that let you use the native system
...
@@ -4,19 +4,19 @@ System Font CSS is set of `@font-face` rules that let you use the native system
```
css
```
css
body
{
body
{
font-family
:
system
;
font-family
:
system
-ui
;
}
}
```
```
[
system-font.css
](
system-font.css
)
offers eight variations of the
`system`
font family;
**light**
(300)
**light italic**
,
**normal**
(400),
**normal italic**
,
**medium**
(500),
**medium italic**
,
**bold**
(700), and
**bold italic**
.
[
system-font.css
](
system-font.css
)
offers eight variations of the
`system
-ui
`
font family;
**light**
(300)
**light italic**
,
**normal**
(400),
**normal italic**
,
**medium**
(500),
**medium italic**
,
**bold**
(700), and
**bold italic**
.
```
css
```
css
blockquote
{
blockquote
{
font
:
italic
300
system
;
font
:
italic
300
system
-ui
;
}
}
p
{
p
{
font
:
400
system
;
font
:
400
system
-ui
;
}
}
```
```
...
@@ -32,7 +32,7 @@ Also, for those of opposed to joy, remember that **Internet Explorer 8** does no
...
@@ -32,7 +32,7 @@ Also, for those of opposed to joy, remember that **Internet Explorer 8** does no
```
css
```
css
body
{
body
{
font-family
:
system
,
"Segoe UI"
,
Tahoma
;
font-family
:
system
-ui
,
"Segoe UI"
,
Tahoma
;
}
}
```
```
...
@@ -44,6 +44,9 @@ body {
...
@@ -44,6 +44,9 @@ body {
Ubuntu has always used one system typeface, apty named
**Ubuntu**
. That part was easy.
Ubuntu has always used one system typeface, apty named
**Ubuntu**
. That part was easy.
##
Is
`system
` going to be a thing?
##
Native
`system
-ui` resources
Maybe. There are
[
discussions in the W3C
](
https://lists.w3.org/Archives/Public/www-style/2015Jul/0169.html
)
to standardize a generic
`system`
family.
*
[
CSS Fonts Module Level 4 Editor’s Draft Specification
](
https://drafts.csswg.org/css-fonts-4/#system-ui-def
)
*
[
Chrome Platform Status
](
https://www.chromestatus.com/feature/5640395337760768
)
*
Proposed for inclusion on
[
Can I Use
](
https://github.com/Fyrd/caniuse/issues/2918
)
*
Previous
[
discussions in the W3C
](
https://lists.w3.org/Archives/Public/www-style/2015Jul/0169.html
)
to standardize a generic
`system`
family.
This diff is collapsed.
Click to expand it.
system-font.css
+
8
−
8
View file @
11153524
/*! system-font.css v1.1.0 | CC0-1.0 License | github.com/jonathantneal/system-font-face */
/*! system-font.css v1.1.0 | CC0-1.0 License | github.com/jonathantneal/system-font-face */
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
normal
;
font-style
:
normal
;
font-weight
:
300
;
font-weight
:
300
;
src
:
local
(
".SFNSText-Light"
),
local
(
".HelveticaNeueDeskInterface-Light"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Light"
),
local
(
"Ubuntu Light"
),
local
(
"Roboto-Light"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
src
:
local
(
".SFNSText-Light"
),
local
(
".HelveticaNeueDeskInterface-Light"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Light"
),
local
(
"Ubuntu Light"
),
local
(
"Roboto-Light"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
}
}
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
italic
;
font-style
:
italic
;
font-weight
:
300
;
font-weight
:
300
;
src
:
local
(
".SFNSText-LightItalic"
),
local
(
".HelveticaNeueDeskInterface-Italic"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Light Italic"
),
local
(
"Ubuntu Light Italic"
),
local
(
"Roboto-LightItalic"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
src
:
local
(
".SFNSText-LightItalic"
),
local
(
".HelveticaNeueDeskInterface-Italic"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Light Italic"
),
local
(
"Ubuntu Light Italic"
),
local
(
"Roboto-LightItalic"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
}
}
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
normal
;
font-style
:
normal
;
font-weight
:
400
;
font-weight
:
400
;
src
:
local
(
".SFNSText-Regular"
),
local
(
".HelveticaNeueDeskInterface-Regular"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI"
),
local
(
"Ubuntu"
),
local
(
"Roboto-Regular"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
src
:
local
(
".SFNSText-Regular"
),
local
(
".HelveticaNeueDeskInterface-Regular"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI"
),
local
(
"Ubuntu"
),
local
(
"Roboto-Regular"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
}
}
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
italic
;
font-style
:
italic
;
font-weight
:
400
;
font-weight
:
400
;
src
:
local
(
".SFNSText-Italic"
),
local
(
".HelveticaNeueDeskInterface-Italic"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Italic"
),
local
(
"Ubuntu Italic"
),
local
(
"Roboto-Italic"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
src
:
local
(
".SFNSText-Italic"
),
local
(
".HelveticaNeueDeskInterface-Italic"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Italic"
),
local
(
"Ubuntu Italic"
),
local
(
"Roboto-Italic"
),
local
(
"DroidSans"
),
local
(
"Tahoma"
);
}
}
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
normal
;
font-style
:
normal
;
font-weight
:
500
;
font-weight
:
500
;
src
:
local
(
".SFNSText-Medium"
),
local
(
".HelveticaNeueDeskInterface-MediumP4"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Semibold"
),
local
(
"Ubuntu Medium"
),
local
(
"Roboto-Medium"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
src
:
local
(
".SFNSText-Medium"
),
local
(
".HelveticaNeueDeskInterface-MediumP4"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Semibold"
),
local
(
"Ubuntu Medium"
),
local
(
"Roboto-Medium"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
}
}
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
italic
;
font-style
:
italic
;
font-weight
:
500
;
font-weight
:
500
;
src
:
local
(
".SFNSText-MediumItalic"
),
local
(
".HelveticaNeueDeskInterface-MediumItalicP4"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Semibold Italic"
),
local
(
"Ubuntu Medium Italic"
),
local
(
"Roboto-MediumItalic"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
src
:
local
(
".SFNSText-MediumItalic"
),
local
(
".HelveticaNeueDeskInterface-MediumItalicP4"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Semibold Italic"
),
local
(
"Ubuntu Medium Italic"
),
local
(
"Roboto-MediumItalic"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
}
}
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
normal
;
font-style
:
normal
;
font-weight
:
700
;
font-weight
:
700
;
src
:
local
(
".SFNSText-Bold"
),
local
(
".HelveticaNeueDeskInterface-Bold"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Bold"
),
local
(
"Ubuntu Bold"
),
local
(
"Roboto-Bold"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
src
:
local
(
".SFNSText-Bold"
),
local
(
".HelveticaNeueDeskInterface-Bold"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Bold"
),
local
(
"Ubuntu Bold"
),
local
(
"Roboto-Bold"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
}
}
@font-face
{
@font-face
{
font-family
:
system
;
font-family
:
system
-ui
;
font-style
:
italic
;
font-style
:
italic
;
font-weight
:
700
;
font-weight
:
700
;
src
:
local
(
".SFNSText-BoldItalic"
),
local
(
".HelveticaNeueDeskInterface-BoldItalic"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Bold Italic"
),
local
(
"Ubuntu Bold Italic"
),
local
(
"Roboto-BoldItalic"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
src
:
local
(
".SFNSText-BoldItalic"
),
local
(
".HelveticaNeueDeskInterface-BoldItalic"
),
local
(
".LucidaGrandeUI"
),
local
(
"Segoe UI Bold Italic"
),
local
(
"Ubuntu Bold Italic"
),
local
(
"Roboto-BoldItalic"
),
local
(
"DroidSans-Bold"
),
local
(
"Tahoma Bold"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment