Browse Source

fonts tailwind ajoutes

philippelin 1 year ago
parent
commit
8422f39067
27 changed files with 72 additions and 10 deletions
  1. 1 1
      bud.config.js
  2. 0 0
      resources/assets/fonts/.gitkeep
  3. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-60.otf
  4. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-60.woff
  5. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-60.woff2
  6. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-90.otf
  7. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff
  8. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff2
  9. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-60.otf
  10. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-60.woff
  11. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-60.woff2
  12. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-90.otf
  13. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-90.woff
  14. BIN
      resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-90.woff2
  15. BIN
      resources/assets/fonts/libre-caslon/LibreCaslonText-Italic.woff
  16. BIN
      resources/assets/fonts/libre-caslon/LibreCaslonText-Regular.woff
  17. BIN
      resources/assets/fonts/libre-caslon/librecaslondisplay-regular.otf
  18. BIN
      resources/assets/fonts/libre-caslon/librecaslontext-italic.otf
  19. BIN
      resources/assets/fonts/libre-caslon/librecaslontext-regular.otf
  20. 39 1
      resources/styles/app.css
  21. 1 0
      resources/styles/editor.css
  22. 5 0
      resources/views/index.blade.php
  23. 2 0
      resources/views/partials/page-header.blade.php
  24. 1 1
      style.css
  25. 7 1
      tailwind.config.js
  26. 15 0
      theme.json
  27. 1 6
      yarn.lock

+ 1 - 1
bud.config.js

@@ -23,7 +23,7 @@ export default async (app) => {
    *
    * @see {@link https://bud.js.org/docs/bud.setPublicPath}
    */
-  app.setPublicPath('/app/themes/sage/public/');
+  app.setPublicPath('/app/themes/partition-jlg-theme/resources/');
 
   /**
    * Development server settings

+ 0 - 0
resources/fonts/.gitkeep → resources/assets/fonts/.gitkeep


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-60.otf


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-60.woff


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-60.woff2


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-90.otf


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff2


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-60.otf


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-60.woff


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-60.woff2


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-90.otf


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-90.woff


BIN
resources/assets/fonts/authentic-sans-90/AUTHENTICSans-Condensed-90.woff2


BIN
resources/assets/fonts/libre-caslon/LibreCaslonText-Italic.woff


BIN
resources/assets/fonts/libre-caslon/LibreCaslonText-Regular.woff


BIN
resources/assets/fonts/libre-caslon/librecaslondisplay-regular.otf


BIN
resources/assets/fonts/libre-caslon/librecaslontext-italic.otf


BIN
resources/assets/fonts/libre-caslon/librecaslontext-regular.otf


+ 39 - 1
resources/styles/app.css

@@ -1,3 +1,41 @@
 @import 'tailwindcss/base';
 @import 'tailwindcss/components';
-@import 'tailwindcss/utilities';
+@import 'tailwindcss/utilities';
+
+@layer base{
+    @font-face {
+        font-family: "Authentic_Sans_90";
+        src: url("/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff") format("woff"),
+        url("/assets/fonts/authentic-sans-90/AUTHENTICSans-90.woff2") format("woff2"),
+        url("/assets/fonts/authentic-sans-90/AUTHENTICSans-90.otf") format("otf");
+        font-weight: 90;
+        font-style: normal;
+    
+      }
+
+      @font-face {
+        font-family: "Authentic_Sans_60";
+        src: url("/assets/fonts/authentic-sans-90/AUTHENTICSans-60.woff") format("woff"),
+        url("/assets/fonts/authentic-sans-90/AUTHENTICSans-60.woff2") format("woff2"),
+        url("/assets/fonts/authentic-sans-90/AUTHENTICSans-60.otf") format("otf");
+        font-style: normal;
+    
+      }
+      
+      @font-face {
+        font-family: 'Libre_Caslon';
+        src: url("/assets/fonts/libre-caslon/LibreCaslonText-Regular.woff") format("woff"),
+        url("/assets/fonts/libre-caslon/librecaslontext-regular.otf") format("otf");
+        font-weight: normal;
+        font-style: normal;
+      }
+
+      @font-face {
+        font-family: 'Libre_Caslon';
+        src: url("/assets/fonts/libre-caslon/LibreCaslonText-Italic.woff") format("woff"),
+        url("/assets/fonts/libre-caslon/librecaslontext-italic.otf") format("otf");
+        font-weight: normal;
+        font-style: italic;
+      }
+      
+}

+ 1 - 0
resources/styles/editor.css

@@ -0,0 +1 @@
+@import url(app.css);

+ 5 - 0
resources/views/index.blade.php

@@ -14,6 +14,11 @@
     }
 </style>
 
+<div class="font-authentic">Ceci est du texte avec la police Authentic Sans 90</div>
+<div class="font-authentic60">Ceci est du texte avec la police Authentic Sans 60</div>
+<div class="font-caslon">Ceci est du texte avec la police Caslon normal</div>
+<div class="font-caslon italic">Ceci est du texte avec la police Caslon italique</div>
+
   <table class="table-fixed">
     <thead>
       <tr class="border-slate-50 w-4/5 h-64 top-24 fixed flex items-stretch justify-around text-center">

+ 2 - 0
resources/views/partials/page-header.blade.php

@@ -1,3 +1,5 @@
 <div class="page-header">
+
   <h1>{!! $title !!}</h1>
+
 </div>

+ 1 - 1
style.css

@@ -10,4 +10,4 @@ License:            MIT License
 License URI:        https://opensource.org/licenses/MIT
 Requires PHP:       8.0
 Requires at least:  5.9
-*/
+*/

+ 7 - 1
tailwind.config.js

@@ -1,9 +1,15 @@
 /** @type {import('tailwindcss').Config} config */
+
 const config = {
   content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
   theme: {
     extend: {
-      colors: {}, // Extend Tailwind's default colors
+      colors: {}, // Extend Tailwind's default colors   
+      fontFamily: {
+        'authentic': ['Authentic_Sans_90', 'sans-serif'],
+        'authentic60': ['Authentic_Sans_60', 'Authentic_Sans_90', 'sans-serif'],
+        'caslon': ['Libre_Caslon', 'serif'],
+      },
     },
   },
   plugins: [],

+ 15 - 0
theme.json

@@ -1285,6 +1285,21 @@
           "name": "Ui-monospace",
           "slug": "mono",
           "fontFamily": "ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace"
+        },
+        {
+          "name": "Authentic_Sans_90",
+          "slug": "authentic",
+          "fontFamily": "Authentic_Sans_90,sans-serif"
+        },
+        {
+          "name": "Authentic_Sans_60",
+          "slug": "authentic60",
+          "fontFamily": "Authentic_Sans_60,Authentic_Sans_90,sans-serif"
+        },
+        {
+          "name": "Libre_Caslon",
+          "slug": "caslon",
+          "fontFamily": "Libre_Caslon,serif"
         }
       ],
       "fontSizes": [

+ 1 - 6
yarn.lock

@@ -4007,12 +4007,7 @@ caniuse-api@^3.0.0:
     lodash.memoize "^4.1.2"
     lodash.uniq "^4.5.0"
 
-caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001332, caniuse-lite@^1.0.30001359, caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001464:
-  version "1.0.30001504"
-  resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001504.tgz"
-  integrity sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q==
-
-caniuse-lite@^1.0.30001504:
+caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001332, caniuse-lite@^1.0.30001359, caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001464, caniuse-lite@^1.0.30001504:
   version "1.0.30001504"
   resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001504.tgz#eaf77e5c852dfa5f82c4924468c30602ac53744a"
   integrity sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q==