Hugo
Hugo
Explore posts from servers
NNuxt
Created by Hugo on 11/2/2024 in #❓・help
Add custom font with tailwind plugin
Hello guys, i'm struggling for 4 hours now on trying to import custom fonts on my project. I try to add the font with a tailwind plugin (so i can just copy the plugin and change the fonts on my diferents projects) But i can't make it work, the font class is created, but the font familly is not recognized. I added all woff and woff2 files in my /asset/fonts/font_name/ folder also i defined my font in tw theme:
fontFamily: {
primary: 'Space Grotesk',
},
fontFamily: {
primary: 'Space Grotesk',
},
then i tried several methods to add the font. in the theme:
fontFamilies:[
{
"fontFamily": "Space Grotesk",
"name": "Principale",
"slug": "primary",
"fontFace": [
{
"fontFamily": "Space Grotesk",
"fontWeight": "400",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [
"file:./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff",
"file:./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff2"
]
},
]
},
],
fontFamilies:[
{
"fontFamily": "Space Grotesk",
"name": "Principale",
"slug": "primary",
"fontFace": [
{
"fontFamily": "Space Grotesk",
"fontWeight": "400",
"fontStyle": "normal",
"fontStretch": "normal",
"src": [
"file:./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff",
"file:./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff2"
]
},
]
},
],
didn't worked, with css :
/* purgecss start ignore */
@import 'tailwindcss/base';
@import 'tailwindcss/components';
/* purgecss end ignore */
@import 'tailwindcss/utilities';

@font-face{
font-family: "Space Grotesk";
src: url("./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff2") format("woff2"),url("./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff") format("woff"),
}
/* purgecss start ignore */
@import 'tailwindcss/base';
@import 'tailwindcss/components';
/* purgecss end ignore */
@import 'tailwindcss/utilities';

@font-face{
font-family: "Space Grotesk";
src: url("./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff2") format("woff2"),url("./assets/fonts/space_grotesk/SpaceGrotesk-Regular.woff") format("woff"),
}
didn't worked too. I'm lost, it's patethic to be lost on "Font customization"
10 replies
RRefine
Created by frozen-sapphire on 5/30/2024 in #ask-any-question
Refine projects
Hi, i just discover Refine, and i really want to use it to make my dashboard, but i already a "vanilla" dashboard with only a different route in my client(front) vite app. If i start a Refine dashboard, how can i plug it to my client in order to only have 2 node server running instead of 3 (backend, dashboard and front)
5 replies
DTDrizzle Team
Created by Hugo on 9/28/2023 in #help
Mysql Syntax error executing query
No description
29 replies
DTDrizzle Team
Created by Hugo on 9/26/2023 in #help
Select Entry in db with relational tables
No description
24 replies
DTDrizzle Team
Created by Hugo on 9/15/2023 in #help
ForeignKey Too Long
Hi Drizzle Devs ! I would like to know if you are working on the functionnality to customize fk naming because i can't fully migrate because my foreign key is too long
4 replies
DTDrizzle Team
Created by Hugo on 9/15/2023 in #help
Drizzle workflow on schema modification
Hi, can someone explain me the process to follow when we modify the schema to push modifications to database please. I'm working on 2 computers, and when i modify schema like adding constraints, when i go to my second computer, i run drizzle-kit introspect:mysql and push:mysql but no modifications are added, also if i drop my table and recreate it with drizzle push:mysl, constraints are not added to my tables. I think feel verry dumb because i can't understand how to work with drizzle when we make modifications. also when i use generate:mysql there is no changes
7 replies
DTDrizzle Team
Created by Hugo on 9/11/2023 in #help
Is it good to use UUID as primary key ?
Hi, i want to define manually an id for my entry to be able to create at tame time a folder with same id. So using uuid can be a problem ? or maybe i have to get a normal id used for everything, and a uuid used to identify my entry in folders (for images) and for client supports ?
id_store: int("id_store").primaryKey().autoincrement(),
uuid: uuid("uuid").notNull(),
id_currency: int("id_currency").references(() => currencies.id_currency),
name: varchar("name", { length: 256 }),
id_store: int("id_store").primaryKey().autoincrement(),
uuid: uuid("uuid").notNull(),
id_currency: int("id_currency").references(() => currencies.id_currency),
name: varchar("name", { length: 256 }),
39 replies
DTDrizzle Team
Created by Hugo on 8/29/2023 in #help
Zod schema validation from Drizzle schema
4 replies
DTDrizzle Team
Created by Hugo on 8/27/2023 in #help
Get database informations inside 'use client' component
Hello, i would like to display categories from my database in my 'use client" component, how can i do ? i don't understand why i have this error when calling database: Module not found: Can't resolve 'net'
16 replies
RRefine
Created by foreign-sapphire on 7/1/2023 in #ask-any-question
[GSI_LOGGER]: The given origin is not allowed for the given client ID.
No description
15 replies