cheatsheet edit

wm-cheatsheet  edit

William & Mary Theme Cheatsheet

Colors | Row themes | Fonts


Warning: file(/www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs-dev/wm/scss/3-variables/_wm-colors.scss): failed to open stream: No such file or directory in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 20

Warning: in_array() expects parameter 2 to be array, bool given in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 22
W&M Color Variables

Read color usage documentation


Notice: Undefined variable: colorNameArray in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 88

Warning: sizeof(): Parameter must be an array or an object that implements Countable in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 88
Color Name: Hex Code
Current colors by APCA value number

Notice: Undefined variable: numbersArray in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 109

Warning: Invalid argument supplied for foreach() in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 109

Notice: Undefined variable: nameArray in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 115

Warning: Invalid argument supplied for foreach() in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 115
Color

Row Theme CSS Variables

Read row color theme documentation


Current row theme variables

Warning: in_array() expects parameter 2 to be array, bool given in /www/virtualhosts/htdocs/creative.wm.edu/public_html/atomic-docs/wm/components/cheatsheet/wm-cheatsheet.php on line 191



Font families

Main Sans Font font(text-sans)

Sans Font Weights

  • This is text set in normal. font(text-sans, normal)
  • This is text set in italic. font(text-sans, italic)
  • This is text set in medium. font(text-sans, medium)
  • This is text set in demi. font(text-sans, demi)
  • This is text set in demi-italic. font(text-sans, demi-italic)
    font-style: italic;
  • This is text set in bold. font(text-sans, bold)


Main Serif Font font(heading-serif)

Heading Weights

  • This is text set in light. font(heading-sans, light)
  • This is text set in book. font(heading-sans, book)
  • This is text set in medium italic. font(heading-sans, medium)
  • This is text set in bold. font(heading-sans, bold)
  • This is text set in black. font(heading-sans, black)


Alternate Serif Font font(alt-heading-serif)

Alternate Heading Weights

  • This is text set in medium. font(alt-heading-sans, medium)


text line height
heading line height

Copy
Edit
<!-- components/cheatsheet/wm-cheatsheet.php --> <h5>William &amp; Mary Theme Cheatsheet</h5> <p><a href="/atomic-docs/wm/atomic-core/?cat=cheatsheet#colors">Colors</a> | <a href="/atomic-docs/wm/atomic-core/?cat=cheatsheet#rowThemes">Row themes</a> | <a href="/atomic-docs/wm/atomic-core/?cat=cheatsheet#fonts">Fonts</a> </p> <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); if (strpos($page_path, "localhost") !== false) { $base_url = $_SERVER['DOCUMENT_ROOT'] . "/atomic-docs/wm"; } else { $base_url = $_SERVER['DOCUMENT_ROOT'] . "/atomic-docs-dev/wm"; } // pull in and process wm-colors $site-colors $linesArray = file($base_url . '/scss/3-variables/_wm-colors.scss', FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES); if (in_array('$site-colors: (', $linesArray)) { $startLine = array_search('$site-colors: (', $linesArray); $endLine = array_search(');', $linesArray); $valueChart = ""; $colorVarArray = []; // create new array out of the values between the start and end lines $siteColors = array_slice($linesArray, $startLine + 1, $endLine - $startLine - 1); foreach ($siteColors as $colorString) { $colorStringArray = explode(":", $colorString); // if it has an opening parenthesis, it is a color name if (strpos($colorString, "(") != false) { $colorName = trim($colorStringArray[0]); } // if it does not have a parenthesis, it is color value and hex code if (strpos($colorString, "(") === false && strpos($colorString, ")") === false && strpos($colorString, "-") === false) { $colorValue = trim($colorStringArray[0]); $colorHex = trim(str_replace(",", "", $colorStringArray[1])); array_push($colorVarArray, [$colorName, $colorValue, $colorHex]); } // if it has a dash, it is a single line with name, value, and color if (strpos($colorString, "-") != false) { $colorString = str_replace("-", ":", $colorString); $colorStringArray = explode(":", $colorString); $colorName = trim($colorStringArray[0]); $colorValue = trim($colorStringArray[1]); $colorHex = trim(str_replace(",", "", $colorStringArray[2])); array_push($colorVarArray, [$colorName, $colorValue, $colorHex]); } } // array_multisort(array_column($colorVarArray, 1), SORT_ASC, $colorVarArray); // get unique colors $uniqueColors = array_unique(array_column($colorVarArray, 0)); $colorNum = sizeof($uniqueColors); $trValue = $colorVarArray[0][1]; $currentIndex = 0; // make arrays for each color name, value number, and hex code $colorNameArray = array_column($colorVarArray, 0); $colorValueArray = array_column($colorVarArray, 1); $colorHexArray = array_column($colorVarArray, 2); // Get unique numbers (keys) from the array $numbersArray = array_unique($colorValueArray); sort($numbersArray); $nameArray = array_unique($colorNameArray); } ?> <div> <h5 class="cheatsheet__section-title">W&M Color Variables</h5> <p style="display: inline-block; border:1px solid silver; padding: 10px;"><i class="fa-solid fa-arrow-right"></i> <a href="atomic-core/?cat=0-readme&comp=colors" target="_blank">Read color usage documentation</a></p> <div class="colorVars"> <table class="hexTable"> <tr> <th>Color Name:</th> <th>Hex Code</th> </tr> <?php for ($i = 0; $i < sizeof($colorNameArray); $i++) { if ($colorValueArray[$i] >= 50) { $textColor = "white"; } else { $textColor = "black"; } echo "<tr class='colorVar'><td>"; echo $colorNameArray[$i] . "-" . $colorValueArray[$i] . ":</td><td style='background-color:" . $colorHexArray[$i] . " !important;color:" . $textColor . " !important;padding:3px 6px;'>" . $colorHexArray[$i]; echo "</td></tr>"; } ?> </table> </div> <h5 class="cheatsheet__section-subtitle">Current colors by <a href="https://www.color-contrast.dev/" target="_blank">APCA value number</a></h5> <?php echo "<table class='colorTable' border='1'>"; echo "<tr><th>Color</th>"; // Print header row with numbers foreach ($numbersArray as $number) { echo "<th style='text-align:Center;'>" . $number . "</th>"; } echo "</tr>"; // Loop through colors and print rows foreach ($nameArray as $name) { echo "<tr>"; echo "<td style='text-align:right;padding-right:8px;'>" . $name . "</td>"; foreach ($numbersArray as $number) { $outline = ''; $textColor = 'black'; $baseColor = ''; for ($j = 0; $j < sizeof($colorNameArray); $j++) { if ($name == $colorNameArray[$j] && $number == $colorValueArray[$j]) { $colorHex = $colorHexArray[$j]; $colorNumber = $colorValueArray[$j]; if ($number >= 50) { $textColor = "white"; } else { $textColor = "black"; } if ($number == $colorNumber) { $baseColor = "baseColor"; } else { $baseColor = ""; } break; } else { $colorHex = ""; } } echo "<td class='' style='padding: 15px 5px; font-size:.8em;border: 2px solid black; background-color:" . $colorHex . " !important;color:" . $textColor . " !important;'>"; echo $colorHex; echo "</td>"; } echo "</tr>"; } echo "</table>"; ?> <hr> <h5 class=" cheatsheet__section-title" id="rowThemes">Row Theme CSS Variables</h5> <p style="display: inline-block; border:1px solid silver; padding: 10px;"><i class="fa-solid fa-arrow-right"></i> <a href="atomic-core/?cat=0-readme&comp=colors-row-themes" target="_blank">Read row color theme documentation</a></p> <BR> <?php // pull in and process wm-theme-colors $color-themes $themesLinesArray = $linesArray; // $themesLinesArray = file($base_url . '/scss/3-variables/_wm-theme-colors.scss', FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES); // if (in_array(':root {', $themesLinesArray)) { // $themeVarsStartLine = array_search(':root {', $themesLinesArray); // $themeVarsEndLine = array_search('}', $themesLinesArray); // $themeVarsColorsArray = array_slice($themesLinesArray, $themeVarsStartLine + 1, $themeVarsEndLine - $themeVarsStartLine - 1); // ?> <h5 class="cheatsheet__section-subtitle">Current row theme variables</h5> <?php // }; function getHexCode($colorName, $colorValue) { // find hex code from array value in colorVarArray that matches colorName and colorValue global $colorVarArray; $hexCode = ''; foreach ($colorVarArray as $colorVar) { if ($colorVar['0'] == $colorName && $colorVar['1'] == $colorValue) { $hexCode = $colorVar['2']; break; } } return $hexCode; } if (in_array('$color-themes: (', $themesLinesArray)) { $themeStartLine = array_search('$color-themes: (', $themesLinesArray); $themeColorsArray = array_slice($themesLinesArray, $themeStartLine + 1, -1); $themeEndLine = array_search(');', $themeColorsArray); $themeColorsArray = array_slice($themesLinesArray, $themeStartLine + 1, $themeEndLine + 1); $themeColorVarArray = []; $themeNameArray = ['dkgreen', 'wmgreen', 'wmsilver', 'white', 'image']; $currentTheme = ''; $currentSubName = ''; foreach ($themeColorsArray as $colorString) { // if string contains ': (' then it's a theme or subname if (strpos($colorString, ': (') !== false) { // get name of theme $colorString = trim(str_replace(": (", "", $colorString)); // if the name is in our theme array, set it as the current theme if (in_array($colorString, $themeNameArray)) { $themeColorVarArray[$colorString] = []; $currentTheme = $colorString; $currentSubName = ''; } else { // otherwise, set it as a subname $currentSubName = $colorString . '-'; } // if string does not contain ': (' and does contain ':' then it's a color string with element and value } elseif (strpos($colorString, ': (') === false && strpos($colorString, ':') !== false) { $colorStringArray = explode(":", $colorString); // add the element and value to the current theme array $themeColorVarArray[$currentTheme][$currentSubName . trim($colorStringArray[0])] = trim($colorStringArray[1], ' ,'); // if string contains '), ' then it closes the theme or subname } elseif (strpos($colorString, '),') !== false) { if ($currentSubName != '') { $currentSubName = ''; } else { $currentTheme = ''; } } } $elementArray = $themeColorVarArray['dkgreen']; echo "<table class='colorTable' border='1'>"; echo "<tr><th style='text-align:right'>Theme</th>"; // Print header row with numbers foreach ($themeColorVarArray as $key => $value) { echo "<th style='text-align:Center;'>" . $key . "</th>"; } echo "</tr>"; foreach ($elementArray as $element => $value) { echo "<tr>"; echo "<td style='text-align:right;padding-right:8px;'>--theme-" . $element . "-color</td>"; foreach ($themeColorVarArray as $theme => $elementArray) { if (array_key_exists($element, $elementArray)) { $number = filter_var($elementArray[$element], FILTER_SANITIZE_NUMBER_INT); $number = str_replace("-", "", $number); if (is_numeric($number) && $number >= 50) { $textColor = "white"; } else { $textColor = "black"; } $isRgb = strpos($elementArray[$element], "rgb"); $rgbStringStart = $isRgb ? 'rgb(' : ''; $rgbStringEnd = $isRgb ? ')' : ''; $elementStringArray = explode("-", $elementArray[$element]); $hexCode = $elementArray[$element]; // COMMENT OUT NEXT 3 LINES and import ../prod/main.css into cheatsheet css // TO TEST IF THEME VARIABLES ARE ALL OUTPUTTING CORRECTLY // due to display issues with the main.css theme vars, // I'm using hex codes to display the theme colors in this table if (sizeof($elementStringArray) > 1) { $hexCode = getHexCode($elementStringArray[3], str_replace(")", "", $elementStringArray[4])); } $elementName = $elementArray[$element]; if (strpos($elementArray[$element], "var")) { $elementName = str_replace(")", "", str_replace("var(", "", $elementArray[$element])); } echo "<td class='' style='padding: 15px 10px; font-size:.9em;border: 2px solid black; background-color:" . $hexCode . " !important;color:" . $textColor . " !important;'>"; echo $elementName; echo "</td>"; } else { echo "<td></td>"; } // } } echo "</tr>"; } echo "</table>"; } ?> <!-- end of cheatsheet --> <br> <hr><br> <div class="cheatsheet"> <div class="cheatsheet__item"> <!-- FONTS -------------------------> <h6 id="fonts">Font families</h6><BR> <span class="font-list"> <p><span class="text-font-family"><strong>Main Sans Font</strong></span> <code style="background-color:#efefef;">font(text-sans)</code> <p> <strong>Sans Font Weights</strong> <ul> <li><span class="text-normal">This is text set in normal.</span> <code style="background-color:#efefef;">font(text-sans, normal)</code> </li> <li><span class="text-italic">This is text set in italic.</span> <code style="background-color:#efefef;">font(text-sans, italic)</code> </li> <li><span class="text-medium">This is text set in medium.</span> <code style="background-color:#efefef;">font(text-sans, medium)</code> </li> <li><span class="text-demi">This is text set in demi.</span> <code style="background-color:#efefef;">font(text-sans, demi)</code> </li> <li><span class="text-demi-italic">This is text set in demi-italic.</span> <code style="background-color:#efefef;">font(text-sans, demi-italic)<br>font-style: italic;</code> </li> <li><span class="text-bold">This is text set in bold.</span> <code style="background-color:#efefef;">font(text-sans, bold)</code> </li> </ul> </p> <hr> <span class="heading-font-family"><strong>Main Serif Font</strong></span> <code style="background-color:#efefef;">font(heading-serif)</code><BR><BR> <p> <strong>Heading Weights</strong> <ul> <li><span class="heading-light">This is text set in light.</span> <code style="background-color:#efefef;">font(heading-sans, light)</code> </li> <li><span class="heading-book">This is text set in book.</span> <code style="background-color:#efefef;">font(heading-sans, book)</code> </li> <li><span class="heading-medium"><em>This is text set in medium italic.</em></span> <code style="background-color:#efefef;">font(heading-sans, medium)</code> </li> <li><span class="heading-bold">This is text set in bold.</span> <code style="background-color:#efefef;">font(heading-sans, bold)</code> </li> <li><span class="heading-black">This is text set in black.</span> <code style="background-color:#efefef;">font(heading-sans, black)</code> </li> </ul> </p> <hr> <span class="alt-heading-font-family"><strong>Alternate Serif Font</strong></span> <code style="background-color:#efefef;">font(alt-heading-serif) </code><BR> <p> <strong>Alternate Heading Weights</strong> <ul> <li><span class="alt-heading-medium">This is text set in medium.</span> <code style="background-color:#efefef;">font(alt-heading-sans, medium)</code> </li> </ul> </p> <hr> <span class="text-line-height"><strong>text line height</strong></span><br> <span class="heading-line-height"><strong>heading line height</strong></span><br><br> </p> </span> </div><!-- end of cheatsheet__item --> </div> <!-- end of cheatsheet --> </div>
Copy
Copy
Edit
// /* scss/cheatsheet/_wm-cheatsheet.scss */ // @import url(../prod/main.css); // .group-wrapper { // display: flex; // flex-direction: row; // & p { // flex: 0 1 50%; // } // } .wm-ad-docs h5 { margin-top: 1rem; clear: both; } body .doc_image { float: right; width: auto; max-width: 400px; margin: 0 0 2rem 1rem; display: block; padding: 15px; border: 1px solid silver; } .cheatsheet__section-title { font-size: 2rem; font-weight: bold; padding-bottom: 0.5rem; } .cheatsheet__section-subtitle { font-size: 1.5rem; font-weight: bold; padding-bottom: 0.5rem; } .hexTable td { border-bottom: 4px solid white; } .hexTable th:first-child, .hexTable td:first-child { text-align: right; } .colorVar span { padding: 3px 6px; display: inline-block; } td { padding: 10px; border: 1px solid silver; } .colorchart { display: grid; grid-template-columns: repeat(auto-fit, min(50%, 370px)); grid-gap: 0; } .colorcontainer { border: 1px solid silver !important; padding: 15px 25px; font-size: 14px; } .value-chart td.colorcategory { font-family: font(heading-sans); font-weight: 700; text-transform: uppercase; padding-top: 10px; padding-bottom: 10px; border: none !important; } .colorcode code { padding: 0 !important; font-size: 14px !important; } .colorvaluecontainer { padding-bottom: 20px; border-bottom: 1px solid silver !important; position: relative; } .colorvaluecontainer:last-child { border-bottom: none !important; } .colorstrings { margin-bottom: 20px; font-size: 14px; } .colorchip { width: 100%; height: 30px; margin: 4px 12px 4px 0; } .colorchip[style*="white"], .colorchip[style*="fff"] { border: 1px solid silver !important; } .value-chart td { border: 1px solid #efefef !important; padding: 7px 10px !important; min-width: none; vertical-align: top; } .value-chart .small-chip { display: block; height: 20px; width: 20px; float: left; margin: 3px 6px 0 3px; } // font families .font-list { font-size: 18px; font-family: font(sans); } .text-font-family, .text-line-height, .heading-line-height { font-family: font(text-sans); } .text-font-family:after { content: " : " + map-get($fonts, "text-sans"); } .text-normal { font-weight: font(sans-weight, normal); &:after { content: " : " + font("sans-weight", "normal"); } } .text-italic { font-weight: font(sans-weight, normal); font-style: italic; &:after { content: " : " + font("sans-weight", "normal"); } } .text-medium { font-weight: font(sans-weight, medium); &:after { content: " : " + font("sans-weight", "medium"); } } .text-demi { font-weight: font(sans-weight, demi); &:after { content: " : " + font("sans-weight", "demi"); } } .text-demi-italic { font-weight: font(sans-weight, demi-italic); &:after { content: " : " + font("sans-weight", "demi-italic"); } font-style: italic; } .text-bold { font-weight: font(sans-weight, bold); &:after { content: " : " + font("sans-weight", "bold"); } } .heading-font-family { font-family: font(heading-serif); } .heading-font-family:after { content: " : " + map-get($fonts, "heading-serif"); } .heading-light { font-family: font(heading-serif); font-weight: font(serif-weight, light); &:after { content: " : " + font("serif-weight", "light"); } } .heading-book { font-family: font(heading-serif); font-weight: font(serif-weight, book); &:after { content: " : " + font("serif-weight", "book"); } } .heading-medium { font-family: font(heading-serif); font-weight: font(serif-weight, medium); &:after { content: " : " + font("serif-weight", "medium"); } } .heading-bold { font-family: font(heading-serif); font-weight: font(serif-weight, bold); &:after { content: " : " + font("serif-weight", "bold"); } } .heading-black { font-family: font(heading-serif); font-weight: font(serif-weight, "black"); &:after { content: " : " + font("serif-weight", "black"); } } .alt-heading-font-family { font-family: font(alt-heading-serif); } .alt-heading-font-family:after { content: " : " + font(alt-heading-serif); } .alt-heading-weights:after { content: " : " + font(alt-heading-weight, medium); } .alt-heading-medium { font-family: font(alt-heading-serif); font-weight: font(alt-heading-weight, medium); &:after { content: " : " + font("alt-heading-weight", "medium"); } } .text-line-height:after { content: " : " + map-get($fonts, "text-line-height"); } .heading-line-height:after { content: " : " + map-get($fonts, "heading-line-height"); } .text-sans { font-family: font(text-sans); &:after { content: "font-family: font(text-sans)"; } &-medium { font-family: font(text-sans); font-weight: font(sans-weight, medium); &:after { content: "font-weight: font(sans-weight, medium);"; } } } @media print { #wm-cheatsheet-container.compWrap { display: block; } #atomsWrap .atoms-main { padding-left: 40px; } .atoms-main .cheatsheet { overflow: hidden; } } // .color { // width: 100%; // float: none; // margin-right: 10px; // margin-bottom: 10px; // color: #fff; // overflow: auto; // } // .color span { // display: block; // padding: 0.5rem; // } // .primary-colors, // .secondary-colors { // padding: 0; // display: block; // width: 100%; // } // .secondary-colors { // display: inline-block; // } // .maincolor { // height: 100px; // } // .text-dark { // color: var(--color-text-dark);; // } // .link-base { // color: var(--color-link-base); // } // .link-hover { // color: var(--color-link-dark); // } // // colors // .color1 { // background: var(--color-wmgreen-90); // & > span.maincolor:after { // content: ": " + map-get(map-get($colors, primary), base); // } // & .dark { // background-color: color(primary, 700); // } // & > span.dark:after { // content: ": " + map-get(map-get($colors, primary), 700); // } // } // .color2 { // background: var(--color-webgold-75); // & > span.maincolor:after { // content: ": " + map-get(map-get($colors, secondary), base); // } // & .dark { // background-color: var(--color-wmgold-55); // } // & > span.dark:after { // content: ": " + map-get(map-get($colors, secondary), accent); // } // } // .color3 { // background: var(--color-griffingreen-100); // & > span.maincolor:after { // content: ": " + map-get(map-get($colors, tertiary), base); // } // } // .color5 { // background: var(--color-wmsilver-25); // & > span.maincolor:after { // content: ": " + map-get(map-get($colors, neutral), base); // } // & .light { // background-color: var(--color-wmsilver-0); // } // & > span.light:after { // content: ": " + map-get(map-get($colors, neutral), light); // } // } // .color7 { // background: var(--color-colonialyellow-45); // & > span:after { // content: ": " + map-get(map-get($colors, alternate), "yellow"); // } // } // .color8 { // background: var(--color-patina-60); // & > span:after { // content: ": " + map-get(map-get($colors, alternate), "brightgreen"); // } // } // .color9 { // background: var(--color-wbrick-65); // & > span:after { // content: ": " + map-get(map-get($colors, alternate), "red"); // } // } // .color10 { // background: var(--color-collegesky-35); // & > span:after { // content: ": " + map-get(map-get($colors, alternate), "blue"); // } // } // .color11 { // background: var(--color-moss-60); // & > span:after { // content: ": " + map-get(map-get($colors, alternate), "green"); // } // } // .color12 { // background: var(--color-collegewoods-75); // & > span:after { // content: ": " + map-get(map-get($colors, alternate), "mutedgreenaccessible"); // } // } // // text size classes for example // .text--9xl { // font-size: 1.91rem; // } // .text--8xl { // font-size: 1.79rem; // } // .text--7xl { // font-size: 1.68rem; // } // .text--6xl { // font-size: 1.58rem; // } // .text--5xl { // font-size: 1.48rem; // } // .text--4xl { // font-size: 1.39rem; // } // .text--xxxl { // font-size: 1.3rem; // } // .text--xxl { // font-size: 1.25rem; // } // .text--xl { // font-size: 1.14rem; // } // .text--lg { // font-size: 1.07rem; // } // .text--md { // font-size: 1rem; // } // .text--sm, // small { // font-size: 0.94rem; // } // .text--xs { // font-size: 0.88rem; // } // .text--xxs { // font-size: 0.83rem; // } // // * css only for example, no global styles should be set here // .space-example { // background: #ccc; // margin: 10px; // display: inline-block; // } // .space-example > div { // background: beige; // } // .space-examples { // display: flex; // align-items: center; // } // .space-examples > div { // background: #ccc; // margin: 10px; // } // .space-examples > div > div { // background: beige; // display: block; // } // .space-5xs { // width: space(5xs); // height: space(5xs); // &:after { // content: "size" + space(5xs); // display: block; // } // } // .space-3xs { // width: space(3xs); // height: space(3xs); // &:after { // content: "size" + space(3xs); // display: block; // } // } // .space-2xs { // width: 0.2665em; // height: 0.2665em; // &:after { // content: "size" + 0.2665em; // display: block; // } // } // .space-xs { // width: 0.35533rem; // height: 0.35533rem; // &:after { // content: "size" + 0.35533rem; // display: block; // } // } // .space-sm { // width: 0.5rem; // height: 0.5rem; // &:after { // content: "size" + 0.5rem; // display: block; // } // } // .space-md { // width: 1.066rem; // height: 1.066rem; // &:after { // content: "size" + 1.066rem; // display: block; // } // } // .space-lg { // width: 2.132rem; // height: 2.132rem; // &:after { // content: "size" + 2.132rem; // display: block; // } // } // .space-xl { // width: 3.12rem; // height: 3.12rem; // &:after { // content: "size" + 3.12rem; // display: block; // } // } // .space-2xl { // width: 4.264rem; // height: 4.264rem; // &:after { // content: "size" + 4.264rem; // display: block; // } // } // .space-3xl { // width: 5.33rem; // height: 5.33rem; // &:after { // content: "size" + 5.33rem; // display: block; // } // } // .space-4xl { // width: 6.396rem; // height: 6.396rem; // &:after { // content: "size" + 6.396rem; // display: block; // } // } // .space-5xl { // width: 7.462rem; // height: 7.462rem; // &:after { // content: "size" + 7.462rem; // display: block; // } // } // .space-10xl { // width: 12.792rem; // height: 12.792rem; // &:after { // content: "size" + 12.792rem; // display: block; // } // } // .space-11xl { // width: space(11xl); // height: space(11xl); // &:after { // content: "size" + space(11xl); // display: block; // } // } // // use for images in spacing // .space-examples img { // vertical-align: bottom; // } // .inset-3xs { // padding: space(inset, 3xs); // margin: space(inset, 3xs); // } // .inset-2xs { // padding: space(inset, 2xs); // margin: space(inset, 2xs); // } // .inset-xs { // padding: 0.35533rem; // margin: 0.35533rem; // } // .inset-sm { // padding: 0.533rem; // margin: 0.533rem; // } // .inset-md { // padding: 1.066rem; // margin: 1.066rem; // } // .inset-lg { // padding: space(inset, lg); // margin: space(inset, lg); // } // .inset-xl { // padding: space(inset, xl); // margin: space(inset, xl); // } // .inset-2xl { // padding: space(inset, 2xl); // margin: space(inset, 2xl); // } // .squish-2xs { // padding: space(squish, 2xs); // margin: space(squish, 2xs); // } // .squish-xs { // padding: space(squish, xs); // margin: space(squish, xs); // } // .squish-sm { // padding: space(squish, sm); // margin: space(squish, sm); // } // .squish-md { // padding: space(squish, md); // margin: space(squish, md); // } // .squish-lg { // padding: space(squish, lg); // margin: space(squish, lg); // } // .squish-xl { // padding: space(squish, xl); // margin: space(squish, xl); // } // .stretch-2xs { // padding: space(stretch, 2xs); // margin: space(stretch, 2xs); // } // .stretch-xs { // padding: space(stretch, xs); // margin: space(stretch, xs); // } // .stretch-sm { // padding: space(stretch, sm); // margin: space(stretch, sm); // } // .stretch-md { // padding: space(stretch, md); // margin: space(stretch, md); // } // .stretch-lg { // padding: space(stretch, lg); // margin: space(stretch, lg); // } // .stretch-xl { // padding: space(stretch, xl); // margin: space(stretch, xl); // } // // heights // .heights td { // border-bottom: 2px solid #666; // } // .heights td:first-child { // background: var(--color-wmsilver-25); // } // .height-sm + td { // height: height(sm); // &:after { // content: "height: " + map-get($heights, "sm"); // } // } // .height-md + td { // height: height(md); // &:after { // content: "height: " + map-get($heights, "md"); // } // } // .height-lg + td { // height: height(lg); // &:after { // content: "height: " + map-get($heights, "lg"); // } // } // .height-xl + td { // height: height(xl); // &:after { // content: "height: " + map-get($heights, "xl"); // } // } // .height-full + td { // height: height(full); // &:after { // content: "height: " + map-get($heights, "full"); // } // } // }