Skip to content

Commit

Permalink
feat: add poppins font
Browse files Browse the repository at this point in the history
  • Loading branch information
ginifizz committed Mar 29, 2024
1 parent 229c4c2 commit 07bead8
Show file tree
Hide file tree
Showing 2 changed files with 169 additions and 51 deletions.
161 changes: 110 additions & 51 deletions static/style/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,10 @@ pre {
margin-bottom: 0.75rem;
}

.-mt-20 {
margin-top: -5rem;
}

.mb-1 {
margin-bottom: 0.25rem;
}
Expand Down Expand Up @@ -1321,10 +1325,6 @@ pre {
margin-top: 2rem;
}

.-mt-20 {
margin-top: -5rem;
}

.block {
display: block;
}
Expand Down Expand Up @@ -1413,14 +1413,14 @@ pre {
height: 100%;
}

.h-screen {
height: 100vh;
}

.h-px {
height: 1px;
}

.h-screen {
height: 100vh;
}

.min-h-\[100vh\] {
min-height: 100vh;
}
Expand Down Expand Up @@ -1506,14 +1506,14 @@ pre {
width: max-content;
}

.w-screen {
width: 100vw;
}

.w-px {
width: 1px;
}

.w-screen {
width: 100vw;
}

.min-w-\[150px\] {
min-width: 150px;
}
Expand Down Expand Up @@ -2096,6 +2096,10 @@ pre {
padding-top: 4rem;
}

.pt-20 {
padding-top: 5rem;
}

.pt-24 {
padding-top: 6rem;
}
Expand All @@ -2112,10 +2116,6 @@ pre {
padding-top: 2rem;
}

.pt-20 {
padding-top: 5rem;
}

.text-center {
text-align: center;
}
Expand Down Expand Up @@ -2437,6 +2437,100 @@ blockquote:has(.caution) {
border-left-color: rgb(193 5 10 / var(--tw-border-opacity));
}

@font-face {
font-family: 'Poppins';

font-style: normal;

font-display: swap;

font-weight: 200;

src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-200-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-200-normal.woff) format('woff');

unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-400-normal */

@font-face {
font-family: 'Poppins';

font-style: normal;

font-display: swap;

font-weight: 400;

src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff');

unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-500-normal */

@font-face {
font-family: 'Poppins';

font-style: normal;

font-display: swap;

font-weight: 500;

src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-500-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-500-normal.woff) format('woff');

unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-600-normal */

@font-face {
font-family: 'Poppins';

font-style: normal;

font-display: swap;

font-weight: 600;

src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-600-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-600-normal.woff) format('woff');

unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-700-normal */

@font-face {
font-family: 'Poppins';

font-style: normal;

font-display: swap;

font-weight: 700;

src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-700-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-700-normal.woff) format('woff');

unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-900-normal */

@font-face {
font-family: 'Poppins';

font-style: normal;

font-display: swap;

font-weight: 900;

src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-900-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-900-normal.woff) format('woff');

unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

.SprdMain .sprd-burgermenu {
top: 48px!important;
}
Expand Down Expand Up @@ -2616,21 +2710,6 @@ kbd.DocSearch-Commands-Key {
z-index: 10;
}

.before\:-mt-20::before {
content: var(--tw-content);
margin-top: -5rem;
}

.before\:-mt-14::before {
content: var(--tw-content);
margin-top: -3.5rem;
}

.before\:block::before {
content: var(--tw-content);
display: block;
}

.before\:h-0::before {
content: var(--tw-content);
height: 0px;
Expand Down Expand Up @@ -2661,11 +2740,6 @@ kbd.DocSearch-Commands-Key {
height: 100%;
}

.before\:h-px::before {
content: var(--tw-content);
height: 1px;
}

.before\:w-10::before {
content: var(--tw-content);
width: 2.5rem;
Expand All @@ -2676,11 +2750,6 @@ kbd.DocSearch-Commands-Key {
width: 100%;
}

.before\:w-px::before {
content: var(--tw-content);
width: 1px;
}

.before\:-translate-x-1\/2::before {
content: var(--tw-content);
--tw-translate-x: -50%;
Expand Down Expand Up @@ -2749,16 +2818,6 @@ kbd.DocSearch-Commands-Key {
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

.before\:pt-20::before {
content: var(--tw-content);
padding-top: 5rem;
}

.before\:pt-14::before {
content: var(--tw-content);
padding-top: 3.5rem;
}

.before\:transition-all::before {
content: var(--tw-content);
transition-property: all;
Expand Down
59 changes: 59 additions & 0 deletions style/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,65 @@
@tailwind components;
@tailwind utilities;

@font-face {
font-family: 'Poppins';
font-style: normal;
font-display: swap;
font-weight: 200;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-200-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-200-normal.woff) format('woff');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-400-normal */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-display: swap;
font-weight: 400;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-500-normal */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-display: swap;
font-weight: 500;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-500-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-500-normal.woff) format('woff');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-600-normal */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-display: swap;
font-weight: 600;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-600-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-600-normal.woff) format('woff');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-700-normal */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-display: swap;
font-weight: 700;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-700-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-700-normal.woff) format('woff');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* poppins-latin-900-normal */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-display: swap;
font-weight: 900;
src: url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-900-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-900-normal.woff) format('woff');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@layer base {
html {
font-family: 'Poppins', system-ui, sans-serif;
Expand Down

0 comments on commit 07bead8

Please sign in to comment.