Skip to content

Commit

Permalink
Improve fonts (#310)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Schulz <jason@schulz.studio>
  • Loading branch information
jasonpaulso and Jason Schulz authored Apr 29, 2024
1 parent 8d608ab commit cb823eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/application.tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ input:focus {
@layer base {
html {
@apply h-full overscroll-none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
@apply h-full font-sans text-gray-950 dark:text-gray-100 flex overflow-y-auto;
Expand Down
2 changes: 1 addition & 1 deletion app/views/application/_head.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= stylesheet_link_tag "https://cdn.jsdelivr.net/npm/daisyui@4.6.0/dist/full.min.css" %>
<%# daisyui (^) is declared above application (v) so we can override classes from it %>
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", 'https://fonts.googleapis.com/css?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap', "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", 'https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap', "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
Expand Down
2 changes: 1 addition & 1 deletion config/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
colors: {
'gray': {
Expand Down

0 comments on commit cb823eb

Please sign in to comment.