diff --git a/src/config/googleFonts.json b/src/config/googleFonts.json new file mode 100644 index 00000000..1000d982 --- /dev/null +++ b/src/config/googleFonts.json @@ -0,0 +1,76 @@ +[ + "Lexend Deca", + "Inter", + "Lexend", + "Roboto", + "Open Sans", + "Lato", + "Montserrat", + "Oswald", + "Raleway", + "Poppins", + "Merriweather", + "Nunito", + "PT Sans", + "Playfair Display", + "Ubuntu", + "Noto Sans", + "Mukta", + "Rubik", + "Libre Baskerville", + "Work Sans", + "Quicksand", + "Roboto Condensed", + "Libre Franklin", + "Karla", + "Manrope", + "Source Sans Pro", + "Fira Sans", + "DM Sans", + "Oxygen", + "Josefin Sans", + "Crimson Text", + "Arimo", + "Barlow", + "Cabin", + "Inconsolata", + "Hind", + "Abril Fatface", + "Bebas Neue", + "Mulish", + "Titillium Web", + "Noto Serif", + "IBM Plex Sans", + "Heebo", + "Archivo", + "Bitter", + "EB Garamond", + "Anton", + "Dosis", + "Indie Flower", + "Lobster", + "Pacifico", + "Shadows Into Light", + "Dancing Script", + "Caveat", + "Righteous", + "Comfortaa", + "Amatic SC", + "Teko", + "Fjalla One", + "Architects Daughter", + "Permanent Marker", + "Zilla Slab", + "Fredoka", + "Cairo", + "Exo 2", + "Urbanist", + "Outfit", + "Pathway Gothic One", + "Yanone Kaffeesatz", + "Red Hat Display", + "Space Grotesk", + "Overpass", + "Silkscreen", + "Sometype Mono" +] diff --git a/src/features/misc/sections/Appearance.jsx b/src/features/misc/sections/Appearance.jsx index 6c51435b..156a6c14 100644 --- a/src/features/misc/sections/Appearance.jsx +++ b/src/features/misc/sections/Appearance.jsx @@ -1,6 +1,7 @@ import { memo, useState } from 'react'; import variables from 'config/variables'; +import googleFonts from 'config/googleFonts.json'; import { Checkbox, Dropdown, Radio, Slider, Text } from 'components/Form/Settings'; import { Header, Section, Row, Content, Action } from 'components/Layout/Settings'; @@ -10,7 +11,6 @@ import { MdAccessibility } from 'react-icons/md'; import values from 'utils/data/slider_values.json'; function AppearanceOptions({ currentSubSection, onSubSectionChange, sectionName }) { - const ThemeSelection = () => { return ( @@ -55,16 +55,15 @@ function AppearanceOptions({ currentSubSection, onSubSectionChange, sectionName )} /> - - ({ + value: font, + text: font, + }))} /> {/* names are taken from https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight */}