3.0.0-canary.169.4463842366.0 • Published 1 day ago

@tablecheck/tablekit-react-css v3.0.0-canary.169.4463842366.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 day ago

Developer Experience with VSCode

When using the VSCode Styled Global Variables Autocomplete plugin, add the following to the Variables Autocomplete: Include setting to get autocomplete in all projects and inside the tablekit repo as well; {src,node_modules/@tablecheck/tablekit-react/lib/esm}/{**/theme,**/themes,**/typography,**/colors,**/globalUtilCss,themeVariables/*,utils/*}.{ts,js,tsx,jsx}

Fonts

Tablekit ships by default with a lot of fallback fonts, our preference is using @ibm/plex but you will need to host these fonts yourselves. If you want to self host on a CDN you can use this snippet as a basis.

The font-family names we have defined are; IBM Plex Sans IBM Plex Sans Arabic and IBM Plex Sans Thai Looped.

We detect which font set to use by the :lang() selector, which combines the language of the browser and the lang="" attribute at the html tag level, and the [data-country] attribute which should usually be set on the html element. See the table below for how each font-family is loaded.

LanguageCountryFont Family
unknownunknownIBM Plex Sans + Chinese inbuilt fonts
jajp (when language is not zh*)IBM Plex Sans + Japanese inbuilt fonts
ardz, bh, td, km, dj, eg, er, iq, jo, kw, lb, ly, mr, ma, om, ps, qa, sa, so, sd, sy, tz, tn, ae, yeIBM Plex Sans Arabic
ththIBM Plex Sans Thai Looped
kokrIBM Plex Sans + Korean inbuilt fonts
@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans ExtraLight'), local('IBM Plex Sans-ExtraLight'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-ExtraLight.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-ExtraLight.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 200;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans ExtraLight Italic'), local(
      'IBM Plex Sans-ExtraLightItalic'
    ),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-ExtraLightItalic.woff2')
      format('woff2'), url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-ExtraLightItalic.woff')
      format('woff');
  font-display: swap;
  font-style: italic;
  font-weight: 200;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Light'), local('IBM Plex Sans-Light'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Light.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Light.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Light Italic'), local('IBM Plex Sans-LightItalic'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-LightItalic.woff2')
      format('woff2'), url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-LightItalic.woff')
      format('woff');
  font-display: swap;
  font-style: italic;
  font-weight: 300;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Regular'), local('IBM Plex Sans-Regular'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Regular.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Regular.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Regular Italic'), local(
      'IBM Plex Sans-RegularItalic'
    ),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Italic.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Italic.woff') format('woff');
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Medium'), local('IBM Plex Sans-Medium'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Medium.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Medium.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Medium Italic'), local(
      'IBM Plex Sans-MediumItalic'
    ),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-MediumItalic.woff2')
      format('woff2'), url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-MediumItalic.woff')
      format('woff');
  font-display: swap;
  font-style: italic;
  font-weight: 500;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans SemiBold'), local('IBM Plex Sans-SemiBold'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-SemiBold.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-SemiBold.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans SemiBold Italic'), local(
      'IBM Plex Sans-SemiBoldItalic'
    ),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-SemiBoldItalic.woff2')
      format('woff2'), url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-SemiBoldItalic.woff')
      format('woff');
  font-display: swap;
  font-style: italic;
  font-weight: 600;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Bold'), local('IBM Plex Sans-Bold'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Bold.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-Bold.woff') format('woff');
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: local('IBM Plex Sans Bold Italic'), local('IBM Plex Sans-BoldItalic'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-BoldItalic.woff2') format('woff2'),
    url('https://cdn.url.here/IBMPlex-Sans/IBMPlexSans-BoldItalic.woff') format('woff');
  font-display: swap;
  font-style: italic;
  font-weight: 700;
}
3.0.0-next.30

21 days ago

3.0.0-next.29

2 months ago

3.0.0-next.28

3 months ago

3.0.0-next.27

5 months ago

3.0.0-next.22

8 months ago

3.0.0-next.21

8 months ago

3.0.0-next.24

7 months ago

3.0.0-next.23

8 months ago

3.0.0-next.20

9 months ago

3.0.0-next.26

7 months ago

3.0.0-next.25

7 months ago

3.0.0-next.11

10 months ago

3.0.0-next.10

10 months ago

3.0.0-next.13

9 months ago

3.0.0-next.12

10 months ago

3.0.0-next.19

9 months ago

3.0.0-next.18

9 months ago

3.0.0-next.15

9 months ago

3.0.0-next.14

9 months ago

3.0.0-next.17

9 months ago

3.0.0-next.16

9 months ago

3.0.0-next.9

11 months ago

3.0.0-next.8

11 months ago

3.0.0-next.4

12 months ago

3.0.0-next.3

1 year ago

3.0.0-next.6

12 months ago

3.0.0-next.5

12 months ago

3.0.0-next.7

12 months ago

3.0.0-next.2

1 year ago

3.0.0-next.1

1 year ago

3.0.0-next.0

1 year ago