Skip to content

Instantly share code, notes, and snippets.

module.exports = {
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'./public/index.html', //optional if you want to add tailwind to your index.html page
'node_modules/@yext/answers-react-components/lib/components/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {
colors: {
'primary': '#2563eb',
@rosiegrant
rosiegrant / document-standard-component.js
Last active April 8, 2021 19:40
document-standard component.js file
{{> cards/card_component componentName='document-standard' }}
class document-standardCardComponent extends BaseCard['document-standard'] {
constructor(config = {}, systemConfig = {}) {
super(config, systemConfig);
}
/**
* This returns an object that will be called `card`
* in the template. Put all mapping logic here.
'use strict';
// load AWS SDK module, which is always included in the runtime environment
const AWS = require('aws-sdk');
// define the Guru API as a "service"
const svc = new AWS.Service({
//Guru base URL
endpoint: 'https://api.getguru.com/api/v1',
exports.handler = function(event, context, callback) {
svc.getCard({
query: 'espp',
apikey: 'kEY'
}, (err, data) => {
if (err) {
console.log('whoops');
return callback(err);
}