Graviton

Graviton is a Razor component library with styles, themes, and components.

Getting Started

To get started import the Graviton NuGet packages.

Import-Package Graviton.Components

Include the style contents into your _Layout.cshtml or index.html inside of your <head></head> tags.

<head>
    <link href="_content/Graviton.Components/css/graviton-light.min.css" rel="stylesheet" />
</head>

Include the following target in your .csproj file to workaround an issue with intellisense:

<Target Name="CollectGravitonAssets" DependsOnTargets="ResolveStaticWebAssetsInputs" AfterTargets="Build" Condition=" '$(Configuration)' == 'Debug' ">
    <Copy SourceFiles="%(StaticWebAsset.Identity)" DestinationFolder="wwwroot/temp" Condition="$([System.String]::Copy(%(StaticWebAsset.Identity)).Contains('graviton'))" />
</Target>