Fluid Type Scale - Generate responsive font-size variables
source link: https://www.fluid-type-scale.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Fluid Type Scale Calculator
Generate font size variables for a fluid type scale with CSS clamp. Grab the output CSS and drop it into any design system.
--font-size-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
--font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
--font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
--font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
--font-size-xl: clamp(1.95rem, 1.56vw + 1.56rem, 2.81rem);
--font-size-xxl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
--font-size-xxxl: clamp(3.05rem, 3.54vw + 2.17rem, 5rem);
Recommend
-
3
Type inference under dependent type (meta variables) 2019, Jun 20 by Tesla Ice Zhang In non-dependent type programming languages where types are distinct from values, we can omit type information sometimes to let t...
-
7
The best way to generate dummy variables in SAS 5 On discussion f...
-
8
The Dilemma of Naming Font Size Variables Learn Development at Frontend Masters
-
3
TIL: How to use GraphQL variables to give my queries type safetyOne of the things I love about GraphQL is how straightforward it is to get up and running with little to no experience. Using a browser-based GraphiQL interface — such a...
-
7
/Blog css 2021-10-28
-
3
Creating a Fluid Type Scale with CSS Clamp Dec 27, 2021 For a long time, many design systems implemented static font sizing, with a set of progressively larger and smaller font size variables on eit...
-
6
October 20, 2022 ...
-
1
A layout grid is a useful aid for a designer organising information in a given space. Although these grids have their roots in print design, where dimensions are fixed, fluid layout grids still have some utility in responsive design. Flui...
-
3
Responsive type scales with composable CSS utilities If you’ve ever attempte...
-
1
Collective UI, why designers quit, responsive Figma variables, 2023 fontsWeekly curated resources for designers — thinkers and makers.
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK