Tailwind CSS Font Variant Numeric
This class accepts lots of values in tailwind CSS in which all the properties are covered in class form. It is the alternative to the CSS font-variant-numeric property. This class is used to control the usage of alternate glyphs. This is done in terms of units or markers such as numbers or fractions.
Font variant numeric classes:
- normal-nums: Using normal-nums will remove each effect of the font-variant-numeric class.
- ordinal: This value directly indicates the open type values i.e. ordn. The term makes use of special glyphs for ordinal markers.
- slashed-zero: This class slashed-zero used a zero with a slash, which proves to be very useful while distinguishing between 0 and O.
- lining-nums: This class corresponds to the open type values i.e lnum. This keyword activates the numbers lying on the baseline.
- oldstyle-nums: This class corresponds to the open type values i.e onum. This keyword activates the set of figures where some numbers have descendant.
- proportional-nums: This class activates those norms where not every number is of the same size. Its open type value is pnum.
- tabular-nums: This class open type value is tnum. It activates those sets of figures where a set of numbers is of the same size.
- diagonal-fractions: It’s open type value is frac. This activates those sets of figures where numerator and denominator are made smaller and are separated by a slash.
- stacked-fractions: It’s open type value is arac. This activates those set of figures where numerator and denominator are made smaller, stacked, and are separated by a horizontal line.
My Personal Notes arrow_drop_up
Please Login to comment...