Contents
+ {tocTree} +{currentIcon}
{themeName}
{levels.map(level => (accents
Lighter Text
+Regular Text
+Darker Text
Default State
Hover State
Active State
Level {level} - +
)); const sideTitle = boxShadowSides.map(side => ( -{side.charAt(0).toUpperCase() + side.substring(1)} - +
)); return ( -
You can quickly add a
diff --git a/www/src/pages/foundations/spacing.tsx b/www/src/pages/foundations/spacing.tsx
index 8b0d4ce4b09..be2a639df16 100644
--- a/www/src/pages/foundations/spacing.tsx
+++ b/www/src/pages/foundations/spacing.tsx
@@ -1,10 +1,11 @@
-import React, { useState } from 'react';
+import React, { useContext, useState } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
-import { Form, Container, DataTable } from '~paragon-react';
+import { Form, DataTable, Container } from '~paragon-react';
import SEO from '../../components/SEO';
import Layout from '../../components/PageLayout';
import MeasuredItem from '../../components/MeasuredItem';
+import { SettingsContext } from '../../context/SettingsContext';
const directions = [
{ key: '', name: 'all' },
@@ -83,6 +84,7 @@ SpaceBlock.defaultProps = {
};
export default function SpacingPage() {
+ const { settings } = useContext(SettingsContext);
const [size, setSize] = useState Direction Last updated: {new Date(analysisLastUpdated).toLocaleDateString()}box-shadow
with the Clickable Box-Shadow Grid.
diff --git a/www/src/pages/foundations/responsive.jsx b/www/src/pages/foundations/responsive.jsx
index 44ff50b7d1c..4e97c975ccb 100644
--- a/www/src/pages/foundations/responsive.jsx
+++ b/www/src/pages/foundations/responsive.jsx
@@ -1,12 +1,13 @@
-import React from 'react';
+import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import {
- DataTable, Container, breakpoints, OverlayTrigger, Tooltip, Icon,
+ DataTable, breakpoints, OverlayTrigger, Tooltip, Icon, Container,
} from '~paragon-react';
import { QuestionMark } from '~paragon-icons';
import SEO from '../../components/SEO';
import Layout from '../../components/PageLayout';
import CodeBlock from '../../components/CodeBlock';
+import { SettingsContext } from '../../context/SettingsContext';
const BREAKPOINT_DESCRIPTIONS = {
extraSmall: { name: 'Extra small', identifier: 'xs' },
@@ -49,6 +50,7 @@ function MaxWidthCell({ row }) {
}
function Responsive() {
+ const { settings } = useContext(SettingsContext);
const breakpointsData = Object.keys(breakpoints).map(breakpoint => {
const { minWidth, maxWidth } = breakpoints[breakpoint];
const breakpointData = getBreakpointDescription(breakpoint);
@@ -58,10 +60,10 @@ function Responsive() {
});
return (
- Responsive
Available breakpoints
Spacing
Spacing according to pixels
Direction
+ Typography
diff --git a/www/src/pages/insights.tsx b/www/src/pages/insights.tsx
index 3799aa28a05..44128bd1b6d 100644
--- a/www/src/pages/insights.tsx
+++ b/www/src/pages/insights.tsx
@@ -2,9 +2,9 @@ import React, { useContext } from 'react';
import { navigate } from 'gatsby';
import PropTypes from 'prop-types';
import {
+ Container,
Tabs,
Tab,
- Container,
} from '~paragon-react';
import SEO from '../components/SEO';
import Layout from '../components/PageLayout';
@@ -21,6 +21,7 @@ import dependentProjectsAnalysis from '../../../dependent-usage.json'; // eslint
import { INSIGHTS_TABS, INSIGHTS_PAGES } from '../config';
import componentsUsage from '../utils/componentsUsage';
import { IInsightsContext } from '../types/types';
+import { SettingsContext } from '../context/SettingsContext';
const {
lastModified: analysisLastUpdated,
@@ -34,6 +35,7 @@ interface TabsDataType {
}
export default function InsightsPage({ pageContext: { tab } }: { pageContext: { tab: string } }) {
+ const { settings } = useContext(SettingsContext);
const { paragonTypes = {}, isParagonIcon = () => false } = useContext(InsightsContext) as IInsightsContext;
const {
components, hooks, utils, icons,
@@ -59,10 +61,10 @@ export default function InsightsPage({ pageContext: { tab } }: { pageContext: {
}
};
return (
-
Usage Insights
Library Status
Components Status
diff --git a/www/src/templates/default-mdx-page-template.tsx b/www/src/templates/default-mdx-page-template.tsx
index c6739e5af08..7742495ce4c 100644
--- a/www/src/templates/default-mdx-page-template.tsx
+++ b/www/src/templates/default-mdx-page-template.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import { MDXProvider } from '@mdx-js/react';
import { Link } from 'gatsby';
@@ -7,6 +7,7 @@ import CodeBlock from '../components/CodeBlock';
import Layout from '../components/PageLayout';
import SEO from '../components/SEO';
import LinkedHeading from '../components/LinkedHeading';
+import { SettingsContext } from '../context/SettingsContext';
const shortcodes = {
h1: (props: HTMLHeadingElement) =>