2.3.4 • Published 1 year ago

procode v2.3.4

Weekly downloads
-
License
BSD
Repository
github
Last release
1 year ago

procode.config.ts - example

const config = {
  spacings: {
    0: "0px",
    1: "1px",
    2: "2px",
    4: "4px",
    5: "5px",
    6: "6px",
    8: "8px",
  },
  borderRadius: {
    0: "0px",
    5: "5px",
    8: "8px",
  },
  colors: {
    light: {
      primary: "#fff",
      primaryAnimation: "#fff", // animation text for <Text>
      secondary: "#000",
    },
    dark: {
      primary: "#fff",
      primaryAnimation: "#fff", // animation text for <Text>
      secondary: "#000",
    },
  },
  gradients: {
    light: {
      primary: "linear-gradient(136deg, #FA8B3C 0%, #DF5117 100%)",
      primaryAnimation: "linear-gradient(136deg, #FA8B3C 0%, #DF5117 100%)", // animation text for <Text>
    },
    dark: {
      primary: "linear-gradient(136deg, #FA8B3C 0%, #DF5117 100%)",
      primaryAnimation: "linear-gradient(136deg, #FA8B3C 0%, #DF5117 100%)", // animation text for <Text>
    },
  },
  shadows: {
    light: {
      primary: "0px 0px 50px 0px rgba(0, 0, 0, 0.05)",
    },
    dark: {
      primary: "0px 0px 50px 0px rgba(0, 0, 0, 0.05)",
    },
  },
  fontSizes: {
    10: "0.625rem",
    12: "0.75rem",
    14: "0.875rem",
    16: "1rem",
    18: "1.125rem",
  },
  fontWeights: {
    thin: 300,
    normal: 500,
    semiBold: 600,
    bold: 700,
  },
  fontLineHeights: {
    12: "0.75rem",
    14: "0.875rem",
    15: "0.9375rem",
    16: "1rem",
  },
  fontLetterSpacings: {
    0: "0rem",
    0.5: "0.05rem",
    1: "0.1rem",
    1.5: "0.15rem",
    2: "0.2rem",
  },
  media: {
    isMobile: `@media only screen and (max-width: 576px)`,
    isTabletOrMobile: `@media only screen and (max-width: 1020px)`,
    isTablet: `@media only screen and (min-width: 577px) and (max-width: 1020px)`,
    isDesktopOrTablet: `@media only screen and (min-width: 577px)`,
    isDesktop: `@media only screen and (min-width: 1021px)`,
    isMaxWidthFullScreen: `@media only screen and (min-width: 1920px)`,
    isAll: `@media screen`,
    isBrowserDarkMode: "@media (prefers-color-scheme: dark)",
    isBrowserLightMode: "@media (prefers-color-scheme: light)",
  },
  animation: {
    transitionTimingFunction: "ease",
    transitionDuration: "0.3s",
    iterationCount: "initial",
    direction: "normal",
  },
};

export default config;
ParameterTypeDefaultDescription
colors.dark / colors.lightstringundefinedRequired. If you want to have an animated color in ui Text, the color name must have Animation at the end, e.g.: textPrimaryAnimation
gradients.dark / gradients.lightstringundefinedRequired. If you want to have an animated color in ui Text, the color name must have Animation at the end, e.g.: textPrimaryAnimation
baseFontSizenumber16Base font size
2.3.4

1 year ago

2.3.3

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.68

1 year ago

2.2.67

1 year ago

2.2.66

1 year ago

2.2.65

1 year ago

2.2.64

1 year ago

2.2.63

1 year ago

2.2.62

1 year ago

2.2.61

1 year ago

2.2.60

1 year ago

2.2.59

1 year ago

2.2.58

1 year ago

2.2.57

1 year ago

2.2.56

1 year ago

2.2.55

1 year ago

2.2.54

1 year ago

2.2.53

1 year ago

2.2.52

1 year ago

2.2.51

1 year ago

2.2.50

1 year ago

2.2.49

1 year ago

2.2.48

1 year ago

2.2.47

1 year ago

2.2.46

1 year ago

2.2.45

1 year ago

2.2.44

1 year ago

2.2.43

1 year ago

2.2.42

1 year ago

2.2.41

1 year ago

2.2.40

1 year ago

2.2.39

1 year ago

2.2.38

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago