- Cloudflare Pages (static assets + serverless functions)
- Cloudflare CDN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://mobile.twitter.com/shadcn/status/1614692419039105024 | |
import { clsx, type ClassValue } from 'clsx'; | |
import { twMerge } from 'tailwind-merge'; | |
export function cn(...inputs: Array<ClassValue>) { | |
return twMerge(clsx(inputs)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const breakpointMap = { | |
// mobile-first, so there is no 'xs' for portrait phones | |
sm: 576, // landscape phones | |
md: 768, // tablets | |
lg: 992, // landscape tablets and desktops | |
xl: 1200, // extra large desktops | |
}; | |
type Breakpoints = typeof breakpointMap; | |
type BreakpointLabel = keyof Breakpoints; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://twitter.com/wesbos/status/932644812582522880/ */ | |
font-feature-settings: "tnum"; | |
font-variant-numeric: tabular-nums; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2014 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |