How to use the typography.body.color function in typography

To help you get started, we’ve selected a few typography examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Autodesk / hig / packages / side-nav / src / Link / stylesheet.js View on Github external
wrapper: {
      display: "flex",
      justifyContent: "space-between",
      alignItems: "center",
      textDecoration: "none",
      padding: `0 ${themeData["density.spacings.medium"]}`,

      // we can't override the :hover selector on typography's
      // style prop, so we have to style the text from the
      // container element
      "&:hover span": {
        color: themeData["colorScheme.accentColor"]
      },

      "& svg *": {
        fill: themeData["typography.body.color"]
      },

      "&:hover svg *": {
        fill: themeData["colorScheme.accentColor"]
      }
    },

    externalIcon: {
      display: "flex",
      alignItems: "center",
      marginLeft: "auto",
      padding: "6px 2px"
    },

    typography: {
      lineHeight: "26px"
github Autodesk / hig / packages / side-nav / src / Module / presenters / stylesheet.js View on Github external
? {
          color: themeData["colorScheme.accentColor"],
          borderLeft: activeBorderLeft
        }
      : { borderLeft: "2px solid transparent" })
  });

  return {
    wrapper: {
      display: "flex",
      alignItems: "stretch",
      paddingLeft: "2px",
      flex: "1 1 auto",
      textDecoration: "none",
      cursor: "pointer",
      color: themeData["typography.body.color"],

      "&:before": activeBorderBefore(props.active || props.activeChildren),

      "&:focus, &:hover": {
        outline: "none",
        color: themeData["colorScheme.accentColor"],

        "svg *": {
          fill: themeData["colorScheme.accentColor"]
        }
      },

      "&:focus:before, &:hover:before": activeBorderBefore(true),

      ...((props.active || props.activeChildren) && {
        "& svg *": {
github Autodesk / hig / packages / side-nav / src / Module / presenters / stylesheet.js View on Github external
display: "flex",
      alignItems: "center",
      justifyContent: "center",
      width: "38px",
      "& svg": {
        pointerEvents: "none"
      }
    },

    externalIcon: {
      display: "flex",
      alignItems: "center",
      marginLeft: "auto",
      padding: "6px 10px",
      "& svg *": {
        fill: themeData["typography.body.color"]
      }
    },

    row: {
      display: "flex",
      flexDirection: "row",
      alignItems: "stretch",
      minHeight: "32px",
      marginRight: themeData["density.spacings.extraSmall"],

      "&:hover svg *": {
        fill: themeData["colorScheme.accentColor"],
        pointerEvents: "none"
      }
    },